Advertisement
srikat

Untitled

Apr 14th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. /**
  2.  * Template Redirect
  3.  * Use archive-recipes.php for taxonomy archives.
  4.  */
  5. add_filter( 'template_include', 'sk_template_redirect' );
  6. function sk_template_redirect( $template ) {
  7.  
  8.     if ( is_tax( 'cuisine-type', 'dish-type', 'healthy-recipes' ) )
  9.         $template = get_query_template( 'archive-recipes' );
  10.     return $template;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement