Unfortunately there is no way of doing this with wp_register_taxonomy()
. When you register a taxonomy, the default metabox is either checkboxes (hierarchical) or as a cloud (non-hierarchical).
The only way round it is to de-register the existing metabox and add a new-one in its place. By carefully mimicking the ‘default’ metabox – you won’t have to process the data yourself, but let WordPress automatically handle adding / removing terms.
The details of how to do this are given in this answer. You may also find this GitHub repository helpful (which now includes the ability of creating terms on the fly in the new metabox). The linked resources refer to creating a metabox with radio boxes, but it could be easily adapted for drop-down menus.
Related Posts:
- restrict_manage_posts not working in 3.3.1
- Dropdown: Display terms from B only if has relationship with a term A selected
- How can I display parent and child taxonomies in separate drop downs?
- How to create drop down for child categories of current taxonomy being viewed?
- How to get a list of taxonomy terms which are being used only within certain post types?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- How to determine the depth of a term in a custom taxonomy?
- How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
- Get parent and children taxonomy in different dropbox
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Query posts from a child taxonomy term id
- Create custom taxonomy and Display in metabox dropdown
- Using wp_dropdown_categories in widget options
- Multiple Custom Taxonomy Dropdowns Lists
- wp_dropdown_categories – how to save in widget?
- Search box with field hidden till drop down selection is made
- How to add a dynamic dropdown derived from custom taxonomy
- Custom field with terms from another taxonomy programmatically
- Unregistered taxonomy apears still as emtpy filter list
- ajax drop down change second drop down data
- Calling Custom Taxonomy Dropdown in Form
- Unable to display the post titles in a drop down
- Taxonomy to display form after creation
- Get term name from term ID?
- 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?
- If taxonomy exists then to show some code
- Using a different template per Custom Taxonomies for single term archive pages
- 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
- ‘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
- Howto control custum taxonomy order?
- How do I modify taxonomy term slugs dynamically?
- Redirect on saving term at custom taxnomy
- 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?
- WP REST API – get custom taxonomies based on terms & filter
- Using WP_Query and Query_post for the loop?
- How to display a custom taxonomy without a link?
- How to show post list based on taxonomy term?
- 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
- 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
- Taxonomy page loading wrong data
- 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
- 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)
- 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
- How can I show custom field according to taxonomy?
- WordPress Taxonomy Menu
- Insert code on specific taxonomy archives
- get_term_children specific no id
- custom texonomy category child category list with parent head