S
S
Sergey Mamenko2018-05-12 12:41:50
WordPress
Sergey Mamenko, 2018-05-12 12:41:50

How to search by parameters ACF WP + FacetWP?

Please help me sort out the issue.
fPao9Gj.png
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 answer(s)
I
Igor Vorotnev, 2018-05-13
@bobongida97

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 question

Ask a Question

731 491 924 answers to any question