Hi,
I’ve tried what you suggested, but it doesn’t works. Still showing the total number of gd_place.
I’m trying to add this shortcode via snippet on the home and search pages.
My snippet:
// Add number of listings filtered by location
function test_listing_count(){
$query_args = array(
‘post_type’ => ‘gd_place’,
‘gd_location’ => true,
);
echo geodir_get_widget_listings($query_args, true);
}
add_shortcode(‘testlistingcount’, ‘test_listing_count’);
Thanks for your help.