[wp-trac] [WordPress Trac] #35326: New taxonomy template
WordPress Trac
noreply at wordpress.org
Mon Oct 20 22:11:39 UTC 2025
#35326: New taxonomy template
-------------------------------------------------+-------------------------
Reporter: sebastian.pisula | Owner: jorbin
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Themes | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-refresh needs-docs | Focuses: template
needs-dev-note |
-------------------------------------------------+-------------------------
Changes (by jorbin):
* owner: (none) => jorbin
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60994" 60994]:
{{{
#!CommitTicketReference repository="" revision="60994"
Themes: Add a new taxonomy template.
This uses the same cascade as tags and categories so the check will first
be for the slug first, then the term ID,
In classic themes, you can now use term IDs when creating taxonomy
templates. With `taxonomy-$taxonomy-{$term->term_id}.php` templates you
don't need to worry about templates breaking if you rename the `Oakland
Athletics` term to `Athletics` the way you do if you use slug based
template names.
Props swissspidy, sebastian.pisula, jorbin, theMikeD.
Fixes #35326.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35326#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list