Comments 2elduco started the conversationJanuary 16, 2025 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 906Zhivko repliedJanuary 17, 2025 at 10:52amSure, 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