Answer the question
In order to leave comments, you need to log in
How to search by parameters ACF WP + FacetWP?
Please help me sort out the issue.
There is a search bar by parameters in the layout and the FacetWP plugin, it sorts posts perfectly, and in order not to do any extra functionality, I think it would be best if this search bar gives a regular link with the parameters that this plugin uses, like:
" /schools/?fwp_school_languages=english"
Would it be a normal and feasible solution if you simply substitute the selected parameters from 's in the href of the "search" button through js?
Or are there any other options? Maybe it would be more convenient to do it in php, but there will still be a metro map, and I still don’t know how it will be possible to get the values from the selected ones in svg
Answer the question
In order to leave comments, you need to log in
1. Make a form here, this is a real form that collects user input and passes it to the handler
2. All selects / inputs are form fields
3. The button is a form submit
4. You can submit as you like - with Ajax, in php and etc., or use js to intercept the submit, collect the url from the field values and send to this url.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question