Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 5, 2014 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/9367857 to your computer and use it in GitHub Desktop.
Save billerickson/9367857 to your computer and use it in GitHub Desktop.
<?php
/**
* Portfolio Template for Taxonomies
*
*/
function be_portfolio_template( $template ) {
if( is_tax( array( 'portfolio_category', 'portfolio_tag' ) ) )
$template = get_query_template( 'archive-portfolio' );
return $template;
}
add_filter( 'template_include', 'be_portfolio_template' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment