Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

On the Reading Settings page you can set a "Front Page" and a "Posts Page". You can check whether the current page is_front_page();

Is there a similar function for the "Posts Page". I have noticed that is_page(); does not work for this special page.

Thanks

share|improve this question

2 Answers 2

up vote 13 down vote accepted

is_home() checks for the "Posts Page", despite the somewhat confusing function name.

share|improve this answer
    
thanks, i thought i checked them all, but i guess not... –  mike Apr 14 '11 at 18:02
    
What about $wp_query->is_posts_page? –  Weston Ruter May 15 '13 at 8:03

"Posts page" is usually an archive of:

  • posts of a category
  • posts of a tag
  • posts of a date ( year, month...)
  • posts of main archive

Each one of these can be checked by a one of the many conditional tags like is_category() is_tag() is_date() is_archive() And so many more. To get a better understanding head over to the codex http://codex.wordpress.org/Conditional_Tags

share|improve this answer

Your Answer

 
discard

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.