Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?php
/**
* Code Template
* Use archive-code.php template for any taxonomy archives in 'code-tag' taxonomy
*
* @param string, default template path
* @return string, modified template path
*/
function be_code_template( $template ){
if( is_tax( 'code-tag' ) )
$template = get_query_template( 'archive-code' );
return $template;
}
add_filter( 'template_include', 'be_code_template' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.