Make WordPress Core

Opened 18 months ago

Last modified 18 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:

Description

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:
https://mysite.com/category/uncategorized/

However, if I go to this URL, its a 404:
https://mysite.com/category/

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
18 months ago

  • Type changed from defect (bug) to enhancement

#2 @SergeyBiryukov
18 months ago

Related/duplicate: #13816

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

#3 @costdev
18 months ago

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