[wp-trac] [WordPress Trac] #17134: Add support for the_slug() in template tags

WordPress Trac noreply at wordpress.org
Fri Feb 1 03:54:11 UTC 2013


#17134: Add support for the_slug() in template tags
-----------------------------------+------------------------------
 Reporter:  tomauger               |       Owner:
     Type:  feature request        |      Status:  reopened
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Template               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------------------

Comment (by wonderboymusic):

 if you're in the loop already, or have already called `the_post()` - why
 not one of these:

 `get_post()->post_name`

 or

 `get_post_field( 'post_name', get_the_ID() )`?

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


More information about the wp-trac mailing list