[wp-trac] [WordPress Trac] #35477: archive-$post_type.php in get_taxonomy_template

WordPress Trac noreply at wordpress.org
Fri Jan 15 17:09:23 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            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I have custom post type and archive. In archive-post_type.php I have
 template. But this CPT have a taxonomy. Template in taxonomy is identical
 to archive-post_type.php so I make taxonomy-taxonomy.php with content:

 {{{#!php
 <?php

 get_template_part( 'archive', 'post_type' );
 }}}

 But I think that WordPress should load archive-post_type.php.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35477>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list