Created
September 23, 2016 01:34
-
-
Save christianmagill/955fcb71f83e50e66492ee01ca3ca612 to your computer and use it in GitHub Desktop.
Use a WordPress Custom Post Type Archive for a Given Taxonomy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('template_include', function(){ | |
if(is_tax('taxonomy-name')) | |
$template = get_query_template('archive-post-type'); | |
return $template; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment