[wp-trac] [WordPress Trac] #35326: New taxonomy template
WordPress Trac
noreply at wordpress.org
Thu Jan 7 09:17:51 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
-------------------------------------+-----------------------------
Comment (by swissspidy):
Replying to [comment:4 theMikeD]:
> @swissspidy since term IDs are now unique thanks to all the term
splitting, why do we need `$taxonomy` in
`taxonomy-$taxonomy-{$term->term_id}.php`?
I suggested it because of consistency.
First, there's already `taxonomy-$taxonomy-{$term->slug}.php`, so adding a
template with the ID makes sense. Second, this helps developers figuring
out what's going on. For example, `taxonomy-123.php`sounds like it's the
template for a taxonomy with the ID 123. `taxonomy-color-123.php` is more
obvious.
Finally, when the taxonomy name can be left out, `term-123.php` would make
more sense. But again, this would not be consistent with the existing
templates..
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35326#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list