Make WordPress Core

Opened 14 months ago

Last modified 14 months ago

#57933 new enhancement

Add query object for taxonomy terms (not posts)

Reported by: johnstonphilip's profile johnstonphilip Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:


With permalinks set to "post name", if I go to a category's URL, the value in $wp_query->get_query_object is a query of posts.

An example of that URL might be:

However, if I go to this URL, its a 404:

I'm wondering if it's been considered that the query object should be set to contain the list of categories (or "terms") in that taxonomy.

This would allow "the loop" in a theme to render a page with the terms in that taxonomy, with links to view each.

Is it too late in the game to make a change like this to core?

Change History (3)

#1 @johnstonphilip
14 months ago

  • Type changed from defect (bug) to enhancement

#2 @SergeyBiryukov
14 months ago

Related/duplicate: #13816

Last edited 14 months ago by SergeyBiryukov (previous) (diff)

#3 @costdev
14 months ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.