feat(display): region landing page with city grid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -532,6 +532,10 @@ class VC_Display {
|
||||
}
|
||||
|
||||
public static function taxonomy_template( $template ) {
|
||||
if ( is_tax( 'viator_destination' ) && get_term_meta( get_queried_object_id(), '_vc_region', true ) ) {
|
||||
$path = get_stylesheet_directory() . '/viator-collector/region.php';
|
||||
return file_exists( $path ) ? $path : VC_PLUGIN_DIR . 'templates/region.php';
|
||||
}
|
||||
if ( is_tax( array( 'viator_destination', 'viator_tag', 'viator_category' ) ) ) {
|
||||
$path = get_stylesheet_directory() . '/viator-collector/taxonomy-viator.php';
|
||||
if ( file_exists( $path ) ) {
|
||||
|
||||
Reference in New Issue
Block a user