Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Template Redirect
- * Use archive-recipes.php for taxonomy archives.
- */
- add_filter( 'template_include', 'sk_template_redirect' );
- function sk_template_redirect( $template ) {
- if ( is_tax( 'cuisine-type', 'dish-type', 'healthy-recipes' ) )
- $template = get_query_template( 'archive-recipes' );
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement