This maybe a simple syntax issue or a limitation of the plugin.
I want to exclude a widget from displaying on the front page and from displaying on the children of a certain page.
To exclude the children I use:
global $post; return !(is_page(25) || ($post->post_parent=="25"));
Where “25” is the page ID of the parent.
To exclude the front page I have been adding an OR cause “||” and the normal exclusion string “!is_front_page()” and so the widget logic reads as:
global $post; return !(is_page(25) || ($post->post_parent=="25")); || is_front_page()
Is it something in the syntax (which I have played with extensively) or is it a limitation???
- The topic ‘[Plugin: Widget Logic] Excluding Children and the Front Page’ is closed to new replies.