Adjust template loader for themes
This commit is contained in:
@@ -134,15 +134,18 @@ class SP_Template_Loader {
|
|||||||
break;
|
break;
|
||||||
endswitch;
|
endswitch;
|
||||||
|
|
||||||
elseif ( is_tax( 'sp_venue' ) || is_tax( 'sp_season' ) ):
|
elseif ( is_tax() ):
|
||||||
|
|
||||||
$term = get_queried_object();
|
$term = get_queried_object();
|
||||||
|
|
||||||
$file = 'taxonomy-' . $term->taxonomy . '.php';
|
switch( $term->taxonomy ):
|
||||||
$find[] = 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
|
case 'sp_venue':
|
||||||
$find[] = SP_TEMPLATE_PATH . 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
|
$file = 'taxonomy-venue.php';
|
||||||
$find[] = $file;
|
$find[] = 'taxonomy-venue-' . $term->slug . '.php';
|
||||||
$find[] = SP_TEMPLATE_PATH . $file;
|
$find[] = SP_TEMPLATE_PATH . 'taxonomy-venue-' . $term->slug . '.php';
|
||||||
|
$find[] = $file;
|
||||||
|
$find[] = SP_TEMPLATE_PATH . $file;
|
||||||
|
endswitch;
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user