[wp-trac] [WordPress Trac] #23826: Funky conditional tags for posts archive

WordPress Trac noreply at wordpress.org
Wed Mar 20 13:51:23 UTC 2013


#23826: Funky conditional tags for posts archive
-----------------------------+--------------------------
 Reporter:  ericlewis        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Query
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 If a WordPress install is set to "Front page displays ... Your latest
 post", then some funky conditional tags are set. Of interest here are:

 {{{ ["is_home"]=> bool(true) }}}
 Sure, makes sense.

 {{{ ["is_post_type_archive"]=> bool(false) }}}
 Erm, what? Isn't this the post type archive for the posts post type?

 {{{ ["is_archive"]=> bool(false) }}}
 Isn't this also an archive?

 This means is_post_type_archive( 'post' ); doesn't work anywhere.

 I also attempted creating a "posts page" for blog posts, and got the same
 results.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23826>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list