WordPress is_front_page() function

New for version 2.5, this function should clear up confusion when using a static page as front page - 2.3 and lower had trouble here when using is_home()

is_front_page() returns true when the main blog page is being displayed and the Settings > Reading > Front page is set to “Your latest posts”,

or
when Settings > Reading > Front page is set to “A static page” and the “Front Page” value is the current Page being displayed.

Bookmark: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google
  • SphereIt
  • StumbleUpon
  • Technorati
  • YahooMyWeb

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment