Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35326, comment 1


Ignore:
Timestamp:
01/06/2016 11:03:04 AM (10 years ago)
Author:
swissspidy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35326, comment 1

    initial v1  
    11`category-{$category->term_id}.php` and `tag-{$tag->term_id}.php` exist as well, but after the slug variant.
    22
    3 So adding `taxonomy-{$term->term_id}.php` seems legit, it should just be in the same order, i.e.
     3So adding `taxonomy-taxonomy-{$term->term_id}.php` seems legit (not `taxonomy-{$term->term_id}.php`)
     4
     5Example:
    46
    57{{{#!php
    68$templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
    7 $templates[] = "taxonomy-{$term->term_id}.php";
     9$templates[] = "taxonomy-$taxonomy-{$term->term_id}.php";
    810}}}