Forums

How to test for blog front page? (can't use is_home or is_frontpage) (4 posts)

  1. tdellaringa
    Member
    Posted 4 years ago #

    Since is_home() no longer works, I need a way to test for my home page so I can set my navigation indicator to "on" for the home link. I see there is the is_frontpage plugin, but this is only for when you are using a static page as your home page, and I am not (nor can I for various reasons).

    Is there another way to test for when I am on the blog home page?

  2. Jeremy Clark
    Moderator
    Posted 4 years ago #

    The function is_home works on 2.1+ if you don't have a static front page set in your dashboard options which you say you don't have.

    You can see for yourself here.
    http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page_.28version_2.1.2B_only.29

  3. tdellaringa
    Member
    Posted 4 years ago #

    So it does... shoot I obviously read that completely wrong :/. Thanks a lot.

  4. Steph
    Member
    Posted 4 years ago #

    The site that hosts the is_frontpage plugin isn't responding. Anybody got a copy?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags