Can anyone help tell me how I could do the reverse of the following logic (which successfully only displays a certain widget on certain pages)?
global $post; return (in_array(1294,get_post_ancestors($post)) || (is_page('client-area')));
However for the next widget I wanted to do exact opposite, as in hide the widget it on the same pages. My attempt to do this via !’s was:
global $post; return (!in_array(1294,get_post_ancestors($post)) || (!is_page('client-area')));
However although it doesn’t return an error it doesn’t hide the widget either. Any help very much appreciated.
PS Love the Widget Logic plugin
- The topic ‘[Plugin: Widget Logic] Anyone know how to do the reverse of this logic?’ is closed to new replies.