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?
- How to prevent new terms being added to a custom taxonomy?
- Determine Term depth
- Order terms by term_order
- Get value in custom field with taxonomy [closed]
- Get second level terms of custom taxonomy
- Large taxonomy (2000+ terms), causing WordPress to hang
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- 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 taxonomy name of current post
- wp_insert_term auto unique name
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- Sort posts by number of matched terms
- show term description instead of list terms of custom taxonomy
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Display Custom Taxonomy Terns ordered by meta_value
- get_the_term_list without specific category
- Display the taxonomy name of the current term
- Automatically assign taxonomy term if custom meta value exists
- Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
- Edit post meta with checkboxes on front end
- Dynamically tax_query terms
- Search by type posts and taxonomy
- get_the_terms() to show all custom taxonomies
- How to order a list of taxonomy terms alphabetically?
- Custom taxonomy query not working with switch_to_blog
- Can I limit term selection to one plus parent?
- Insert form checkbox at bottom of taxonomy edit term page
- Get Current Custom Taxonomy ID by Post ID
- ‘wp’ action hook not firing in admin and login?
- Taxonomy archive showing no results
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- Get_terms stopped working after WP 4.2
- Changing taxonomy term by slug (wp_update_term)
- Getting Term ID from Term Name for WordPress Query
- Show only the grandchildren (using get_terms)
- Custom Taxonomy Term Caching?
- wp_insert_term created and set for first once only
- Rewrite Rules returning wrong data
- WordPress Custom post query sorting does not work
- Display all posts that use a custom taxonomy
- Use an HTML Element To Filter Taxonomies In WP Search
- Weekdays as terms – How to order taxonomy terms by ID in admin panel?
- How to find taxonomy parent id from child taxonomy page?
- Set term on an attachment using wp_set_object_terms and want to display the full term text but it’s showing a slug instead
- Why isn’t the ‘no results’ being shown when a query returns no results?
- How to get_the_term_list() from multiple taxonomies?
- Why does wp_remove_object_terms not work?
- how to get term id from current post type instead of name
- Display children category images
- How to show post for a particular term of custom taxonomy?
- Taxonomy archive template that shows posts from more than one taxonomy
- How to get this value inside RETURN
- Hide echo of no categories from get_object_taxonomies
- Displaying Posts Attached to Custom Taxonomy Terms
- Page for custom taxonomy
- How to list terms by first letter, as in A’s then B’s etc
- Filter with two id of the same value CPT UI(taxanomies)
- Taxonomy archive uses incorrect template when query strings are used
- Cloning product not copying custom taxonomies
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- How to change custom categories term links?
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- WP Query : strange behaviour with multiple no-hierarchical tax
- Print Custom Taxonomy Term Name
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- switch statement for taxonomy content
- Include attachments with a custom taxonomy in search
- List terms and order by second word
- Display taxonomy term slugs
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Tax query array terms display out of order
- Custom taxonomy displayed in search results
- displaying links if term is used
- How to include child terms within parent?
- Display term description on hover using get_the_term_list
- stdClass::$labels /wp-includes/general-template.php undefined
- Display woocommerce product_cat child terms with thumbnails
- query grandchildren taxonomy terms
- List posts grouped by children of a custom taxonomy
- Taxonomy Child Not Updating Unless I Click Update Twice
- post_type_link not working for posts without terms