Exclude 2 child pages but show the rest
-
This is a problem I have been having for a while and had on another site. I have a parent page- About us- where I’d like my widget to work. And I’d like it to show on all child pages of About us- except for 2 pages.
This code from Other Notes works to show the widget on all the child pages-
global $post; return (is_page(‘about-us’) || ($post->post_parent==”1119″));
When I try to exclude it from 2 of the child pages it removes it from all the child pages-
global $post; return (is_page(‘about-us’) || ($post->post_parent==”1119″)); || !(is_page(‘careers’)OR
global $post; return (is_page(‘about-us’) || ($post->post_parent==”1119″)); || global $post; return !(is_page(‘careers’) || ($post->post_parent==”1119″));Any help would be very much appreciated!
- The topic ‘Exclude 2 child pages but show the rest’ is closed to new replies.