[wp-trac] [WordPress Trac] #35326: New taxonomy template
WordPress Trac
noreply at wordpress.org
Wed Jan 6 11:02:12 UTC 2016
#35326: New taxonomy template
-------------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: template
-------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: => has-patch needs-refresh
* focuses: => template
* component: Themes => Taxonomy
* milestone: Awaiting Review => Future Release
Comment:
`category-{$category->term_id}.php` and `tag-{$tag->term_id}.php` exist as
well, but after the slug variant.
So adding `taxonomy-{$term->term_id}.php` seems legit, it should just be
in the same order, i.e.
{{{#!php
$templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
$templates[] = "taxonomy-{$term->term_id}.php";
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35326#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list