#34587 closed defect (bug) (wontfix)
the_archive_title and the_archive_description should return multiple terms
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | needs-patch |
Focuses: | template | Cc: |
Description
For some time it is possible to use multiple taxonomies in URL to create intersection or join, so
example.com/tag/term_1+term_2 return posts with both terms (AND)
example.com/tag/term_1,term_2 return posts with any of this term (OR)
but the_archive_title (and possible also the_archive_description) print in such cases only the first term. I think, the_archive_title should print Term 1(,|+) Term 2 and the_archive_description should probably return nothing in such cases.
Attachments (1)
Change History (7)
#3
follow-up:
↓ 5
@
7 years ago
The problem here is that we don't "really" support these queries in core. The WP_Query
object only has 1 tag ID for instance when you query two tags... So that'd need fixing before you could fix this properly... My feeling is: we probably shouldn't do anything about that, but I might be wrong :)
This ticket was mentioned in Slack in #core by joostdevalk. View the logs.
7 years ago
#5
in reply to:
↑ 3
@
7 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
Replying to joostdevalk:
The problem here is that we don't "really" support these queries in core.
Right, both functions rely on get_queried_object()
, which can only contain one object at a time.
We'll need to make sure that the patch here is i18n-friendly. What do we do elsewhere when we need to assemble lists like this?