WordPress.org

Forums

can't use is_page() after get_header() in template file (5 posts)

  1. alvarix
    Member
    Posted 6 years ago #

    It is ignored after the get_header() call. Is that normal behavior?

  2. Dagon Design
    Member
    Posted 6 years ago #

    I do not believe so - would it be possible to see your usage?

  3. alvarix
    Member
    Posted 5 years ago #

    Actually, it seems to be inside the query_posts() call. Is THAT normal behavior? Seems more normal at least :P

    Thanks

  4. Beee
    Member
    Posted 5 years ago #

    i have the same problem, any solutions ?

  5. noelgreen
    Member
    Posted 5 years ago #

    Pretty easy really.
    Just put this bit of code right before the "is_page()" call.
    <?php wp_reset_query(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags