function the_tax_map() { global $term_id; echo get_gmap_shortcode_from_term_id($term_id); }
$cat = $wp_query->get_queried_object(); $term_id = $cat->term_id; $term = get_term($term_id, $cat->taxonomy); $content = get_term_meta($term_id, 'content', true); $content = trim($content) == '' ? $term->description : $content; $website = get_term_meta($term_id, 'website', true); $href = false === strpos($website, '://') ? 'http://' . $website : $website; //------- get_header(); do_action('rhc_before_content'); ?> <div class="venue-container custom-content-area"> <div class="venue-top-info"> <div class="venue-small-map"><?php echo $use_dynamic_gmap ? do_shortcode(get_gmap_shortcode_from_term_id($term_id, 960, 250)) : get_google_staticmap($term_id); ?> </div> <div class="venue-name"><?php echo $term->name; ?> </div> <div class="venue-details-holder"> <div class="venue-image-holder"><?php echo get_term_image($term_id); ?> </div> <div class="venue-defails"> <div class="venue-gaddress"><label class="tax-addres">Address</label><?php echo get_term_meta($term_id, 'gaddress', true);