You need to make only one change in the form, change the first line to:
<select name="property_type[]" class="form-control" multiple>
Name of the field has to include [] to be considered as an array when it arrives on the server side. In the query string it will be listed as:
property_type[]=condo&property_type[]=duplex
And, on server side, when you read this use this:
$property_type = (array)$_GET['property_type'];
This can go right at the top just after the $s = $_GET['s'];
line,
Make sure to sanitize all the input data before using. More on data sanitizing you can find here: Validating Sanitizing and Escaping User Data
Related Posts:
- Retrieve posts by term id custom query
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Taxonomy.php issue with search and filters
- How to List Parent Term Links for Custom Taxonomy With & Without Children?
- Print terms with taxonomy and metabox value
- List related terms + taxonomies
- How to get the term description in a taxonomy term archive query?
- Include get_term_link inside search
- Query pages by child term
- How to perform a search inside a specific taxonomy category
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- add_query_arg to look up page title
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- Change order of Custom Taxonomy List
- Get the the top-level parent of a custom taxonomy term
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_terms – only top level
- How to only list the child terms of a taxonomy and not their parents?
- Hierarchical taxonomy UI
- How to prevent new terms being added to a custom taxonomy?
- Order get_terms using a Custom Field
- get_term_children for immediate children only (not grandchildren)
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Query users by custom taxonomy and user role
- Display category posts grouped by taxonomy
- Determine Term depth
- Exclude Specific Term from Search
- How to get current term in my custom taxonomy in WordPress?
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- Is there a way to ‘Lock’ a Taxonomy?
- Hide the term description on the term edit page, for a given taxonomy
- Order terms by term_order
- get_term_by not working when in functions.php
- Creating a non-removable taxonomy term
- Get value in custom field with taxonomy [closed]
- Get second level terms of custom taxonomy
- restrict_manage_posts not working in 3.3.1
- Can I lock down custom taxonomies on a parent term level, but not a child term?
- Get only the first term by taxonomy
- Exclude specific slug in ‘get_terms’
- Large taxonomy (2000+ terms), causing WordPress to hang
- WordPress Search – display taxonomy terms in results
- Custom order of terms for custom taxonomy in admin and website
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Best pratice to make taxonomy terms translatable without changing slugs?
- Front End Post Save Child terms
- Return only the custom sub-term for custom post type, do not echo term-parent
- wp_insert_term is adding a term that has no name
- Taxonomy slug by term ID
- Check if current term is a child of another term
- Is there a way to import terms into WordPress?
- get_terms() doesn’t return empty terms even though hide_empty is false
- Get terms from multiple taxonomies
- Get taxonomy name of current post
- Formating the_terms() function output
- get_terms() returns an empty array
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- wp_insert_term auto unique name
- get_terms showing link to category even if all posts are drafts
- Determine if Term has Grandparent/Great-Grandparent
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- Dropdown: Display terms from B only if has relationship with a term A selected
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- How to find objects by terms
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- Retrieving custom taxonomy in order, but excluding specific tax IDs
- Sort posts by number of matched terms
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Get main parent categories for a product
- Get current term’s ID
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- Filter all queries with a specific taxonomy
- Showing posts by collection of specific terms and texonomy
- wp_query orderby title and meta key value (WP3.1)
- get taxonomy terms for parent and child
- Taxonomy query for children of parents
- Custom Search | Wrong output & question
- show term description instead of list terms of custom taxonomy
- WP_insert_term how to insert multiple values as taxonomny term?
- Group posts that matches a term in a loop
- term_link() filter or rewrite and howto?
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Display Custom Taxonomy Terns ordered by meta_value
- Separator for multiple terms
- Contact Form 7 – Populating dropdown list with terms relative to the post
- Custom Taxonomy terms with latest post ordered by date pagination issue
- How to set hierarchical terms to a post using wp_set_object_terms
- Echo taxonomy term meta on author.php
- get_the_term_list without specific category
- Hierarchical display of custom taxonomy
- Listing child terms of parent term
- Display the taxonomy name of the current term
- Custom taxonomy term as class?
- How to edit/remove a term that’s in multiple taxonomies?
- Ordering Posts with Custom Taxonomy Terms Array
- Include different loop templates in search query
- How to create a theme template for the taxonomy “root”