term_id; $args = array('post_type' => 'eagle_rooms', 'tax_query' => array( array( 'taxonomy' => 'eagle_branch', 'field' => 'term_id', 'terms' => $eb_branch_id, ), ), ); $eb_branches_query = new WP_Query($args); $term = get_queried_object(); $term_id = $term->term_id; $eb_branch_desc = $term->description; $eb_branch_logo = get_term_meta( $term_id, 'eb_branch_logo', true ); $eb_branch_bg = get_term_meta( $term_id, 'eb_branch_bg', true ); $eb_branch_address = get_term_meta( $term_id, 'eb_branch_address', true ); $eb_branch_phone = get_term_meta( $term_id, 'eb_branch_phone', true ); $eb_branch_email = get_term_meta( $term_id, 'eb_branch_email', true ); include_once EB_PATH . '/core/admin/form-parameters.php'; ?>

have_posts()) { echo '

'. __('Rooms of', 'eagle-booking').' '.single_term_title("", false).'

'; while ( $eb_branches_query->have_posts() ) : $eb_branches_query->the_post(); /** * Include Room */ include eb_load_template('search/room.php'); endwhile; } else { echo ''; } wp_reset_query() ?>