Comments 2elduco started the conversation1 day ago on Thursday at 10:56pmIs there a way to include filter variables in the url? For example, our if main calendar has the url /schedule/, is there a way to set the location filter on load to a specific filter, based on a url variable? eg /schedule/?filter_location=4 897Zhivko replied15 hours agoSure, try this hook: add_filter('stec_shortcode_atts', function ($atts) { if (get_query_var('pagename') === 'schedule') { $atts['filter__location'] = 4; } return $atts; }); Stachethemes Developer Sign in to reply ...
Is there a way to include filter variables in the url?
For example, our if main calendar has the url /schedule/, is there a way to set the location filter on load to a specific filter, based on a url variable? eg /schedule/?filter_location=4
Sure, try this hook:
Stachethemes Developer