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

WordPress Trac noreply at wordpress.org
Thu Apr 4 04:14:13 UTC 2013


#23826: Funky conditional tags for posts archive
--------------------------+------------------------------
 Reporter:  ericlewis     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 is_post_type_archive wasn't originally a flag. It was a piggyback on
 is_archive. It was certainly understood at the time that is_home basically
 (I'm simplifying significantly here) a post type archive for posts. And
 yes, neither is_archive nor is_post_type_archive will be true for them.

 There's no post type archive for pages either, as pages cannot be browsed
 in archive form. So, just think of post type archives as for custom post
 types only. Over time, functionality that is intrinsic and unique to posts
 and pages may get abstracted a bit more, which may lead to improvements
 here.

 This is just one of those situations we're going to live with. At some
 point, maybe a new level of abstraction comes along and we're able to
 significantly change how query flags work. But this is what we have to
 work with for now.

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


More information about the wp-trac mailing list