!is_search() (2 posts)

  1. mjoanisse
    Posted 5 years ago #

    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')) { ?>


  2. mjoanisse
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic