How do I exclude venues by event tag on Locations Archive page?
-
Some of my locations have the ‘hotel’ tag set (it is an EM tag). I would like to exclude these locations from the Locations List/Archives page.
I tried using the ’em_locations_get’ filter but it results in 0 locations.
add_filter('em_locations_get', 'ce_output_locations_filter', 10, 2); function ce_output_locations_filter($arg1, $args) { //$args['tag'] = -83; $args['tax_name'] = '-hotel'; //$args['tax_name'] = '-83'; error_log(var_export($args, true)); return; }
Note that I tried $args[‘tag’] and $args[‘tax_name’] (numeric and text) but same results.
How do I exclude those locations?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How do I exclude venues by event tag on Locations Archive page?’ is closed to new replies.