Use get_terms
and output the term objects within whatever markup you need:
$terms = get_terms( 'your-taxonomy' );
if ( $terms ){
echo '<select>';
foreach ( $terms as $term ) {
echo '<option value="' . $term->slug . '">' . $term->name . '</option>';
}
echo '</select>';
}
Related Posts:
- Exclude specific slug in ‘get_terms’
- display taxonomy slug from term ID
- Changing taxonomy term by slug (wp_update_term)
- generate random slug when adding taxonomy
- Display taxonomy term slugs
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- How can I select a primary category?
- Return only the custom sub-term for custom post type, do not echo term-parent
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- Formating the_terms() function output
- How to create non-unique sub-category slugs?
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- Get current term’s ID
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- How to set hierarchical terms to a post using wp_set_object_terms
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- How to edit/remove a term that’s in multiple taxonomies?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- How to display term description in empty terms archive?
- Display empty taxonomy terms with get_terms()
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- How to create drop down for child categories of current taxonomy being viewed?
- How do I get the slug of a custom taxonomy category of a post?
- get / list categories and counts filtered by custom taxonomy term
- Get terms ordered by post date
- Allow only 1 instance of each term in each custom taxonomy
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- get_the_terms() to show all custom taxonomies
- How can I get WP to build a feed based on multiple taxonomy terms
- get_terms: determine if taxonomy term has children
- “show option all” on list categories doesn’t display taxonomy
- get_term_children doesn’t return an array of children terms
- Get Current Custom Taxonomy ID by Post ID
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy archive showing no results
- Use get_the_terms to list subcategories of custom taxonomy
- Get custom category image from menu
- get_term and get_term_by return null or false, even though term exists
- Sort order by slug for looped child terms of custom taxonomy
- Replace taxonomy permalinks
- Get posts from specific taxonomy term
- Display custom taxonomy attached to the post on post single page
- What does ‘category__in’ mean in queries?
- Displaying Custom Taxonomy without a hyperlink
- Echo custom taxonomy slug
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- 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
- How to group all terms children’s in custom taxonomy?
- Show template part if part of term
- one post per term taxonomy
- How can I change the output display of my pagination?
- Corrupted nav-menu?
- Get name of taxonomies of current page
- List Top 5 taxonomy terms based on number of post
- Order taxonomy terms wordpress
- Show single Child Category on Custom Post
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- Set two terms for a post when they differ only by an accent
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Retrieve the child terms by having the parent’s information
- add pagination in wordpress page template
- Listing Cities A custom taxonmy by selection order
- Cloning product not copying custom taxonomies
- Get WooCommerce product category list in functions.php
- How to create a non removable taxonomy term?
- How to show category list in WordPress
- Filter “get_terms” query
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- ACF Custom field not showing in Timber Taxonomy page
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- set_object_terms for custom taxonomy in custom post type – not working
- qtranslate-x problem with custom term description
- Resize $term attachment using url
- Display List of Categories Within a Custom Taxonomy
- switch statement for taxonomy content
- Change order custom taxonomy
- Taxonomy term breadcrumb; how?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- Display woocommerce product_cat child terms with thumbnails
- How to delete unused terms?
- How do I check if a post has a term with a particular ancestor/parent?
- Taxonomy Archive URL + Template
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Duplicate slug/permalink issue
- wp_insert_post not adding taxonomy (using wp_set_object_terms)