• Hello all,
    Is there any reason, why my search results page (search.php) – is displaying the sidebar elements following this if statement?

    (It should only be specific to child posts of page 40, page 40 itself, and 2 other pages, categorized with id 3. (no where here stating to output on search results page)

    <?php if (is_page(40) || $post->post_parent == '40' || in_category('3')) { ?>

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter mjoanisse

    (@mjoanisse)

    i’ve tried !is_search() on a similar if statement, which seemed to have worked; however, not in this case.

Viewing 1 replies (of 1 total)
  • The topic ‘!is_search()’ is closed to new replies.