Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Template Redirect
- * Use archive-artist.php for stage and day taxonomy archives.
- */
- add_filter( 'template_include', 'custom_tax_template', 99 );
- function custom_tax_template( $template ) {
- if ( is_tax( 'stage' ) || is_tax( 'day' ) ) {
- $new_template = locate_template( array( 'archive-artist.php' ) );
- if ( '' != $new_template ) {
- return $new_template ;
- }
- }
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement