I’m trying to use Widget Logic to exclude widgets from children and grandchildren of a particular page on my site. The code I’m using only work for the page and it’s children but not the grandchildren and I don’t know how to include them.
Here is my code;
global $post; return !(is_page(219) || ($post->post_parent==”219″));
How can I add another 2 pages to this? I’ve tried my interpretation of ‘logic’ but it hasn’t prevailed. Any help is truly appreicated
- The topic ‘Widget Logic – How to exclude children and grandchilren’ is closed to new replies.