This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: taxonomy settings in custom redirect url

Home Forums Product Support Forums Ajax Search Pro for WordPress Support taxonomy settings in custom redirect url Reply To: taxonomy settings in custom redirect url

#24026
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Indeed, that function is limited at this time to recognize only the custom field related filters. There is however another way to do this, but it is a bit more complicated.

There is a filter state URL, and it can be requested via the plugin API.
For that, you need to open your browser developer console, and enter this API method there:

ASP.api(1, 'getStateURL')

Change the number ‘1’ to the search ID you have, in case it is different. This should print out a URL like so: https://i.imgur.com/prUknH6.png
That is the URL of the current filter states on the current page. If you change the filters on the current page, and execute the above code again, it will print out those states. Visiting that URL will automatically preset the filters to the given state.

In this case, change the filters as you want them, request the filter stat URL via the API call above, then copy that URL. Then, if you need a different configuration, change the filter, run the code again, and a different URL will be generated.