JoeHana
8/1/2014 - 1:01 PM

Filter Listings on Map Page (Template)

Filter Listings on Map Page (Template)

<?php

/**
 * Filter Listings on Map Page (Template)
 */

add_filter( 'wpsight_map_query_args', 'custom_map_query_args' );

function custom_map_query_args( $args ) {
	
	$args = array(
		'tax_query' => array(
			array(
				'taxonomy' 	=> 'property-category', // define taxonomy name
				'terms' 	=> '63' // define ID to retrieve from
			)
		)
	);
	
	return $args;
	
}