[wp-trac] [WordPress Trac] #35810: New function: `is_post_type`

WordPress Trac noreply at wordpress.org
Fri Feb 12 13:08:33 UTC 2016


#35810: New function: `is_post_type`
-------------------------------+------------------------------
 Reporter:  sebastian.pisula   |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by ramiy):

 If you are trying the check whether the query is for an archive page of a
 given post type, use the `is_post_type_archive()` function.

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


More information about the wp-trac mailing list