[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
Tue May 25 15:36:27 UTC 2010


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

  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 (In [14887]) Give is_singular the ability to provide awareness/context for
 custom post types. props ryan, scribu. Usage: is_singular('book') or
 is_singular( array( 'newspapers', 'books' ) ). fixes #12588.

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


More information about the wp-trac mailing list