[wp-trac] [WordPress Trac] #12588: Add function to check if current page is a custom post type

WordPress Trac wp-trac at lists.automattic.com
Thu May 20 07:12:04 UTC 2010


#12588: Add function to check if current page is a custom post type
-------------------------------------+--------------------------------------
 Reporter:  sirzooro                 |        Owner:  nacin   
     Type:  enhancement              |       Status:  reopened
 Priority:  normal                   |    Milestone:  3.0     
Component:  Administration           |      Version:  3.0     
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------

Comment(by scribu):

 And, as somebody in IRC mentioned, we should also have is_archive('book'),
 to complement is_singular('book').

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


More information about the wp-trac mailing list