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

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 14 19:01:42 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:
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |
-----------------------------+------------------------------

Comment (by tomauger):

 Is it always the case that the slug is intended to be used in conjunction
 with the URL?

 post_class() is powerful and contextual, but doesn't always do what a
 theme developer might want. For example, if styling a section where you
 may want to include an id="post-name", you won't get that using
 post_class() and you almost certainly wouldn't want to use the_id() to
 have a numeric ID in your item.

 I'm sure there are a million enhancements that are higher priority or more
 important, but I don't see that this request in any way contradicts the
 intent of template tags and would be a welcome addition to the list,
 particularly for new developers who may have no other reason to access the
 query object directly.

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


More information about the wp-trac mailing list