Custom Filter Query
-
Hi,
I’ve created a quick custom filter:function featured_property_function($query_args){
$query_args['meta_key'] = '_featured';
$query_args['meta_value'] = 'yes';
$query_args['meta_key'] = '_on_market';
$query_args['meta_value'] = 'yes';
return $query_args;
}
add_filter('featured_filter', 'featured_property_function');For some reason when I add “featured_filter” to the query id field on the Loop Group but its not showing the correct properties.
Any ideas why that’s not showing?
- The topic ‘Custom Filter Query’ is closed to new replies.