I want to do some custom formatting depending on the used filters… I tried this:
global $searchandfilter;
$sf_current_query = $searchandfilter->get(69991)->current_query();
echo $sf_current_query->get_fields_html(
array(“_sfm_mk_quelle_affiliate_shop”),
$args
);
… and: echo $sf_current_query->get_field_string(“_sfm_mk_quelle_affiliate_shop”);
And took the field name from my search url:
https://miriamkreativ.de/material?_sfm_mk_quelle_affiliate_shop=Creativ-Discount
But there is nothing shown unfortunately…
I tried one more thing (displaying the searchg term):
global $searchandfilter;
$sf_current_query = $searchandfilter->get(69991)->current_query();
echo $sf_current_query->get_search_term();
… and this works for me. So please can you help me with the first example, showing / getting the chosen “affiliate shop”-option?