kimil
4/19/2014 - 8:14 PM

gistfile1.aw

<?php

/**
 * Template Redirect
 * Use archive-event.php for all events and 'event-category' taxonomy archives.
 * @author Bill Erickson
 * @link http://www.billerickson.net/code/use-same-template-for-taxonomy-and-cpt-archive/
 *
 * @param string, default template path
 * @return string, modified template path
 *
 */
function be_template_redirect( $template ) {
	if ( is_tax( 'event-category' ) ) 
		$template = get_query_template( 'archive-event' );	
	return $template;
}
add_filter( 'template_include', 'be_template_redirect' );