!is_page or $post->post_parent !=
-
this code works fine:
global $post; return (is_page( array( 302, 730, 686 ) ) || ($post->post_parent==”686″));
however.. for a few more of my widgets I need the opposite of that so it won’t show those on the above pages. when I change is_page to !is_page.. that works fine.. but if I change == to != for post_parent.. it messes it up.
how would I properly write this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘!is_page or $post->post_parent !=’ is closed to new replies.