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

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 27 21:11:06 UTC 2011


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

 * keywords:  2nd-opinion =>
 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

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

 #18118 is about adding the slug/post name to ''body_class'', which can
 help you to style a section, if you doesn't want to use the ID.

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


More information about the wp-trac mailing list