Just a standard HTML form will do!
<form action="<?php echo home_url("https://wordpress.stackexchange.com/"); ?>" method="get">
<p><?php wp_dropdown_categories('taxonomy=taxonomy-1&name=taxonomy-1'); ?></p>
<p><?php wp_dropdown_categories('taxonomy=taxonomy-2&name=taxonomy-2'); ?></p>
<p><input type="submit" value="Search!" /></p>
</form>
Just replace taxonomy-1
and taxonomy-2
with the names of your taxonomies.
Important
If you registered your taxonomy with a custom query_var
, you’ll need to match it in the name
argument of wp_dropdown_categories()
.
Also, querying multiple taxonomies is not supported as of 3.02 – you’ll need the 3.1 beta, a plugin or additional filters.
Related Posts:
- Get term name from term ID?
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Can custom taxonomies be displayed inside of a custom meta box?
- Front End Post Save Child terms
- Display child taxonomy until the last child
- URL rewrite rules for multiple taxonomies query
- Best practices for complex taxonomies
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Page queried instead of a custom taxonomy
- Pros and cons of using [taxonomy name] in place of [category name]?
- How to display and use all existing tags at my write-post-at-frontend-panel?
- How to use create_term, edit_term, delete_term actions?
- Excluding a custom taxonomy term breaks wp_get_post_terms
- Can I turn off write-in tags/taxonomies?
- If taxonomy exists then to show some code
- Using a different template per Custom Taxonomies for single term archive pages
- How to get Custom Taxonomy ID from the post ID
- How do I add customize_register action AFTER adding a custom taxonomy
- How to get parents of custom taxonomy, as what get_category_parents() do?
- How can I display all post IDs from the taxonomy?
- Woocommerce custom taxonomies page
- Getting yoast title for custom taxonomy
- Keep taxonomy base name in post permalinks
- Outputting an array of term meta values in a custom WooCommerce tab?
- get_terms: determine if taxonomy term has children
- Is it acceptable to build functionality into a theme built for a client? [closed]
- Set a taxonomy as private
- “show option all” on list categories doesn’t display taxonomy
- get_term_children returns WP_Error for custom taxonomy
- Category taxonomy template not working for custom post
- Permalinks for custom taxonomy stopped to work
- ‘Show on screen’ for custom taxonomies does not save
- Displaying terms by first letter
- get_category_link returning page URL
- Same taxonomy for different object types
- Enable the admin to sort custom taxonomy
- Show preset taxonomy description
- Translating a custom taxonomy
- Show all post of taxonomy on base taxonomy URL
- Taxonomies for custom post types
- Taxonomies image
- How do I modify taxonomy term slugs dynamically?
- Redirect on saving term at custom taxnomy
- Getting associated taxonomies
- Pagination on Custom Tax Pages Removes Spaces from Query Vars
- Taxonomy Rewrite Rules Redirecting Instead of Masking
- Custom taxonomy not appearing in menu administration panel
- Does using custom taxonomy is more CPU efficient than using meta_data?
- how can i display taxonomy instead of category on my web page?
- Taxonomy Meta Box in User Profile?
- WP REST API – get custom taxonomies based on terms & filter
- How can I make front page to display custom taxonomy page?
- Using WP_Query and Query_post for the loop?
- Multiple Custom Taxonomy Dropdowns Lists
- How to show post list based on taxonomy term?
- WordPress autocomplete search with taxonomies
- Display empty custom taxonomies differently than with one with posts
- Double slash in the_terms URL
- Using custom taxonomy when registering a new custom post type
- How to call a custom taxonomy term name inside a function?
- Get custom taxonomy name (not the term) in custom post
- How to add custom content to custom taxonomy
- remove term from custom taxonomy list
- Display taxonomy with a maximum number of letters
- query to use to link to taxonomy single page
- Fix Custom Taxonomy Display two times on each call
- Update Custom Taxonomy Value for a post based on custom date field
- Display Child Categories of Current Post ID
- Taxonomies specific to Page attribute template
- Saving custom taxonomies to post as checkbox on frontend
- How can I show links for custom posts group by taxonomy current term and sub-term?
- Show custom taxaomy as a product meta
- Echo ACF taxonomy field within a foreach for another taxonomy
- Keeping session instance of random display results over pagination breaks
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- Updating a custom post type’s custom taxonomy in a custom editor block
- Infinite Scroll appending Next Product Category Term pages
- Listing Cities A custom taxonmy by selection order
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- Count tags for current post and save into custom meta field (and update it on post edit)
- Limit Tag Links in Post Content
- Passing taxonomy id of taxonomy clicked on one page to another page
- Custom Taxonomy Not Being Recognized by is_tax()
- Custom taxonomy – no posts found
- How to truncate the description in the admin panel for a custom taxonomy
- Custom button on custom taxonomy listing page
- Custom Taxonomy Archives Page Errors
- customize taxonomy Page
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- Remove taxonomy menu without removing the metabox?
- Custom taxonomy list in Worpdress
- Get one custom taxonomy category
- How can I show custom field according to taxonomy?
- Creating a page for custom taxonomy archive
- WordPress Taxonomy Menu
- Insert code on specific taxonomy archives
- get_term_children specific no id
- custom texonomy category child category list with parent head
- Search and filter with custom field in taxonomy
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)