[wp-trac] [WordPress Trac] #5358: Queried object on multiple tag query holds only first tag
WordPress Trac
noreply at wordpress.org
Wed Nov 19 13:51:27 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 zimrit):
I ran into this same issue on my own site (aboutnames.co.uk) when
debugging multi-tag archives.
get_queried_object() only gave me the first tag, and the rest were
missing.
Using explode(',', get_query_var('tag')) fixed it and returned all terms
correctly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/5358#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list