[wp-trac] [WordPress Trac] #35326: New taxonomy template

WordPress Trac noreply at wordpress.org
Wed Jan 6 17:12:18 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 sebastian.pisula):

 WordPress 4.5.0 ? :)

 Replying to [comment:1 swissspidy]:
 > `category-{$category->term_id}.php` and `tag-{$tag->term_id}.php` exist
 as well, but after the slug variant.
 >
 > So adding `taxonomy-$taxonomy-{$term->term_id}.php` seems legit (not
 `taxonomy-{$term->term_id}.php`)
 >
 > Example:
 >
 > {{{#!php
 > $templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
 > $templates[] = "taxonomy-$taxonomy-{$term->term_id}.php";
 > }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35326#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list