[wp-trac] [WordPress Trac] #13507: Conditional tag for post type and taxonomy

WordPress Trac wp-trac at lists.automattic.com
Sun May 23 21:11:12 UTC 2010


#13507: Conditional tag for post type and taxonomy
--------------------------+-------------------------------------------------
 Reporter:  ojp3d         |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  3.0              
Component:  General       |     Version:  3.0              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by nacin):

 Neither of these are conditional tags. is_taxonomy and is_post_type tell
 you if it is registered.

 For conditional tags, you'll want is_tax, and probably is_singular (we
 haven't acted on #12588 yet).

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


More information about the wp-trac mailing list