• Resolved pitterpat

    (@pitterpat)


    Hi,

    I created a new page and called it Home. I also made it static and the front page.

    But is_home() returns 0 for that page and 1 for my About page.

    Did I do something wrong?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Vaughan

    (@vaughan-van-dyk)

    Hi,

    Indeed, one would think is_home() would return true for the screen that is displayed as your ‘home’ page.

    However, when you use a static front page, is_home returns true for the page you’ve specified as your Posts page in the WordPress Admin panel under Settings – Reading. So I’m guessing you’ll find About listed there as your Posts page.

    What you want to use rather in WordPress 2.5 is is_front_page, which will return true if you’re using a static front page and it is being displayed as the home page or if you are not using a static front page.

    Hope that helps.
    Vaughan

    Thread Starter pitterpat

    (@pitterpat)

    Hi Vaughn,

    Yes. It’s a BIG help.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My home page isn’t my home page!’ is closed to new replies.