[wp-trac] [WordPress Trac] #58216: numeric tags are tagged with tag-ID instead of tag-slug in the post_class()

WordPress Trac noreply at wordpress.org
Fri Apr 28 06:16:41 UTC 2023


#58216: numeric tags are tagged with tag-ID instead of tag-slug in the post_class()
---------------------------------------+-----------------------------
 Reporter:  ratterobert                |      Owner:  (none)
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  General                    |    Version:  6.2
 Severity:  major                      |   Keywords:  needs-patch
  Focuses:  javascript, css, template  |
---------------------------------------+-----------------------------
 I have created a numeric tag (title and slug are 2024). In the classes
 created by {{{ post_class() }}}, the tag is output with the {{{ tag_ID
 }}}.

 However, I need the slug at this point, as I then filter via JavaScript.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58216>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list