WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to call index.php using is_page()? (3 posts)

  1. Redeye Adaya
    Member
    Posted 4 years ago #

    Because I am using a static homepage, I redirected the posts to a page named 'News'. However, I discovered that I couldn't call the 'News' page thru is_page() function anymore. I suspect it's because the 'News' page now represents index.php. Is there any function or parameter(for is_page()) that I could use to call index.html?

  2. MichaelH
    Member
    Posted 4 years ago #

    Consider that home.php can control the display of the 'posts page'. See: Administration > Settings > Reading

  3. Redeye Adaya
    Member
    Posted 4 years ago #

    found the function. it's is_home(). :-)

Topic Closed

This topic has been closed to new replies.

About this Topic