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

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 14 17:52:29 UTC 2011


#17134: Add support for the_slug() in template tags
-----------------------------+-----------------------------
 Reporter:  tomauger         |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Template         |    Version:  3.1
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 Although one can easily extract the page or post's slug from
 $post_data['post_name'], this seems to be one of the only important bits
 of data for which no template tag has been created.

 The slug is often used, for example, when creating specific classes or
 id's within HTML elements. Presumably the other template tags were all
 created for convenience and to simplify template creation. Not including
 the_slug() in the template tags seems to be an oversight, easily
 corrected.

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


More information about the wp-trac mailing list