Advertisement
srikat

Untitled

Mar 25th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /**
  2. * Template Redirect
  3. * Use archive-artist.php for stage and day taxonomy archives.
  4. */
  5. add_filter( 'template_include', 'custom_tax_template', 99 );
  6. function custom_tax_template( $template ) {
  7.  
  8. if ( is_tax( 'stage' ) || is_tax( 'day' ) ) {
  9. $new_template = locate_template( array( 'archive-artist.php' ) );
  10. if ( '' != $new_template ) {
  11. return $new_template ;
  12. }
  13. }
  14.  
  15. return $template;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement