WordPress.org

Ready to get started?Download WordPress

Forums

is_front? (3 posts)

  1. patrickw
    Member
    Posted 8 years ago #

    Is there some sort of template tag that I can use to detect if the current page that was requested is the home page?

    like

    <? if(is_front()) { ?>
    Frontpage content
    <? } else { ?>
    The loop
    <? } ?>

  2. jalenack
    Member
    Posted 8 years ago #

    If I'm not mistaken, you can use is_home()

Topic Closed

This topic has been closed to new replies.

About this Topic