WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developing a website using WordPress 3.3.2 and have the Front Page and Posts Page set to use static pages. I'm trying to show different menus using wp_nav_menu() for the static front page and static posts page respectively.

I was able to find is_front_page() to check for the front page, however after hours of banging my head against the WordPress Codex and checking the mighty Google I can't find a comparable function or method to check if the user is currently on the static posts page.

Has anyone run into this? Any help would be greatly appreciated!

share|improve this question
up vote 4 down vote accepted

There are two options:

// If the current page is the blog posts index,
// but is NOT the site front page
if ( is_home() && ! is_front_page() )


// If the current page has the ID of the
// page assigned to display the blog posts index
if ( is_page( get_option( 'page_for_posts' ) )
share|improve this answer
You sir are awesome; thank you! – dSquared Jun 11 '12 at 22:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.