[wp-trac] [WordPress Trac] #32272: Built In 'Post' Archive Ignored Using is_post_type_archive()

WordPress Trac noreply at wordpress.org
Thu May 7 19:54:05 UTC 2015


#32272: Built In 'Post' Archive Ignored Using is_post_type_archive()
--------------------------+---------------------------------------
 Reporter:  Howdy_McGee   |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  4.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration, template
--------------------------+---------------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 Howdy_McGee]:

 There's an [comment:3:ticket:23826 explanation] from nacin why
 `is_post_type_archive()` works the way it does.

 > There's already `is_category()` for blog categories, `is_tag()` for
 tags, `is_author()` for Authors, but nothing specifically targets Post
 Date Archive Pages.

 `is_date()` does: https://codex.wordpress.org/Function_Reference/is_date.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32272#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list