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

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.


share|improve this question
up vote 19 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

Wordpress comes with 7 primary template page types, which can be determined on this way

if ( is_main_query() ) {
    // Error
    if ( is_404() ) {
    // Front page
    if ( is_front_page() ) {
    // Archive
    if ( is_archive() ) {
    // Comments popup
    if ( is_comments_popup() ) {
    // Search
    if ( is_search() ) {
    // Singular
    if ( is_singular() ) {
    // Home - the blog page
    if ( is_home() ) {

is_home tells to you, that you have the blog page.

share|improve this answer

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.