[wp-trac] [WordPress Trac] #35477: archive-$post_type.php in get_taxonomy_template
WordPress Trac
noreply at wordpress.org
Fri Jan 15 19:42:01 UTC 2016
#35477: archive-$post_type.php in get_taxonomy_template
------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: close | Focuses: template
------------------------------+------------------------------
Changes (by swissspidy):
* keywords: => close
* focuses: => template
Comment:
`archive-{$post_type}.php` is already used in `get_archive_template()` for
post type archives. Using the same template in `get_taxonomy_template()`
would lead to unintended effects.
In `get_taxonomy_template()`, the post type of every post can
theoretically be different, so loading a template for a specific post type
associated with the taxonomy is not possible.
What you're currently doing should be fine and is not wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35477#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list