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

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 2 17:44:55 UTC 2012


#17134: Add support for the_slug() in template tags
-----------------------------+-----------------------
 Reporter:  tomauger         |       Owner:
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  Template         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-----------------------
Changes (by creatorbri):

 * cc: creatorbri (added)
 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 ''"I can't see a benefit of a the_slug() function. The slug is only for
 building the URL." -- ocean90''
 ----


 @ocean90 - I completely disagree.

 There are all sorts of situations in template building where a quick &
 convenient '''the_slug()''' function would be beneficial. The fact that
 you can't think of them doesn't

 Almost ''more'' importantly, as a theme/plugin builder, it seems intuitive
 to include it -- as analogous to '''the_title'''() and '''the_excerpt'''()
 -- and particularly ''unintuitive'' to exclude it.

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


More information about the wp-trac mailing list