Looking for amazing deals on Spanish-American War Items or Reenactment and Reenactor Uniforms, Uniform Patterns, and Period Clothing?
Find the Best Prices on Authentic and Reproduction Spanish-American War Items and New and Used Reenactor Needs.
PB_ERROR_EBAY_XML
PB_ERROR_NO_RESULTS
|
add_filter( 'single_template', function ( $the_template ) {
foreach ( (array) get_the_category() as $cat ) {
if ( file_exists( TEMPLATEPATH . "/single-{$cat->term_id}.php" ) ) {
return TEMPLATEPATH . "/single-{$cat->term_id}.php";
}
}
return $the_template;
} );
Like this:
Like Loading...