Hello,
i’ve create a CPT name “event” and inside this i’ve create some custom field with ACF (for example tipe of event, city event) and i like to create a search module with two field search (city and tipe event). So this field must be combinate and then if i select i have a result of post with this custom field.
I not want to use WordPress search with, for example, relenvassi, but i what to create a new search form.
How can i do that?
Hi @serviceweb
For something like that, you need to create a new custom form with a get method. This page should give you more idea about it: http://www.w3schools.com/php/php_forms.asp. After that, you need to check the $_GET variable and use it to query the custom post type. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/query-posts-custom-fields/.
I hope this helps.