I have a portal in wordpress that have 2 custom post type: Companii, Anunturi and 3 custom taxonomy: Domenii (post type Anunturi), Activitati (post type Companii), Judet (both post type).
I need a custom search form that include:
- text input (it will search in title, description and 3-5 custom meta fields)
- dropdown with extracted custom post type (all without build-in posts, they are Companii and Anunturi), default selected value is Companii
- dropdown with custom taxonomy Domenii or Activitati, depending of selected custom post type (AJAX changed), default selected value is empty
- dropdown with custom taxonomy Judet of selected custom post type (AJAX changed), default selected value is empty
- submit button.
Can be made all search combination available. Dropdown values of custom taxonomies will include only non-empty values. Custom meta fields are different for each post type, so is depending of selection of the dropdown with post type.
Search page results will be based on any combination of search form.