[wp-trac] Re: [WordPress Trac] #6345: Function to return single post / page ID

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 24 21:30:26 GMT 2008


#6345: Function to return single post / page ID
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |        Owner:  anonymous
     Type:  enhancement   |       Status:  new      
 Priority:  normal        |    Milestone:  2.7      
Component:  General       |      Version:  2.5      
 Severity:  normal        |   Resolution:           
 Keywords:  needs-patch   |  
--------------------------+-------------------------------------------------
Comment (by markjaquith):

 See {{{ get_queried_object_id(); }}}  But note that it will work on more
 than {{{ is_singular() }}} pages.  So you'd want to still do your {{{
 is_singular() }}} check.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6345#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list