[wp-trac] [WordPress Trac] #5358: Queried object on multiple tag query holds only first tag

WordPress Trac noreply at wordpress.org
Thu Apr 17 15:07:37 UTC 2025


#5358: Queried object on multiple tag query holds only first tag
--------------------------+-----------------------------
 Reporter:  Kafkaesqui    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Future Release
Component:  Taxonomy      |     Version:  2.3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by frogsplash):

 Hi gang... stumbled across this ancient thread after the 6.8 update. As of
 6.7.x, this query still delivered just the one object – specifically, the
 tag listed first in the query.

 www.example.org/tag/example+2025/

 I'm using the single_term_title() to get the title. In 6.7.x and all prior
 versions, the above URL will output a title of "example".

 In 6.8, the behavior changed. Now the same URL will output "2025" instead
 -- looks like the first query available alphabetically?

 If there are other ways to grab the title of the first tag listed in the
 URL query, please let me know!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/5358#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list