Faced this problem too.
You can solve it adding to functions.php filtering code:
add_action( 'admin_init', function() {
if( isset( $_POST['tax_input'] ) && is_array( $_POST['tax_input'] ) ) {
$new_tax_input = array();
foreach( $_POST['tax_input'] as $tax => $terms) {
if( is_array( $terms ) ) {
$taxonomy = get_taxonomy( $tax );
if( !$taxonomy->hierarchical ) {
$terms = array_map( 'intval', array_filter( $terms ) );
}
}
$new_tax_input[$tax] = $terms;
}
$_POST['tax_input'] = $new_tax_input;
}
});
Full code in forked snippet
https://gist.github.com/antonlukin/da2b8107c67e677928a87398d89ca202
Related Posts:
- custom post type taxonomy “tag” archive : no post found
- Widget to display custom taxonomy tag cloud
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- WordPress renames slug of tags used in multiple taxonomies?
- Allow only 1 instance of each term in each custom taxonomy
- Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
- Replace taxonomy permalinks
- Create custom taxonomy and Display in metabox dropdown
- Set two terms for a post when they differ only by an accent
- Any way to make custom taxonomy field searchable?
- Group custom taxonomies based on tags contained in their posts
- How to use taxonomies on attachments with the new Media Library?
- Add custom taxonomy fields when creating a new taxonomy
- How to display custom taxonomies in posts?
- Exclude Specific Term from Search
- Creating Custom Taxonomy without mapping to any post type
- Exclude specific slug in ‘get_terms’
- wp_insert_term – parent & child problem
- Hook to process a new taxonomy tag before it is created?
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- wp_options table value
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- how to get title to custom tags page
- Adding session variable and/or cookie based on user-selected input
- How to display term description in empty terms archive?
- Display sub-taxonomies based on SELECTED parent-taxonomy
- 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?
- Query Posts by taxonomy/Taxonomy Child Custom order
- How can I get WP to build a feed based on multiple taxonomy terms
- Change permalink of post if it belongs to custom taxonomy
- Get pages only with a specific taxonomy
- Share taxonomy between user and posts?
- Make a taxonomy column sortable in the admin?
- How to obtain the link/URL to the feed of a custom taxonomy?
- get_term_children doesn’t return an array of children terms
- Get taxonomy parent using child slug (from merged taxonomies)
- How to display custom taxonomy images on index.php?
- get_term and get_term_by return null or false, even though term exists
- Get number of post who belongs in two taxonomies!
- Query posts by taxonomy with current term
- WordPress thinks my custom taxonomy pages are search pages #seo
- problem in taxonomy-{taxonomy}.php pagination
- Adding custom taxonomy in my existing category URL
- How to get posts which must match both custom taxonomies?
- How to add images to taxonomy terms? [duplicate]
- Why get_page_template() doesn’t show taxonomy template file name?
- How can I create an automatic drop down menu with my tags?
- one post per term taxonomy
- How can I change the output display of my pagination?
- How to get attached image to taxonomy..?
- How to get list of only custom taxonomies?
- Displaying user selected custom tags/taxonomies on the front-end
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Use wp_list_categories to list parent categories from actual term
- Amend taxonomy to search in wordpress admin
- Unique taxonomy for post
- Trash Bin for Categories?
- How to add a dynamic dropdown derived from custom taxonomy
- Retrieve the child terms by having the parent’s information
- add pagination in wordpress page template
- How to create a non removable taxonomy term?
- Get tags name under custom taxonomy in wordpress
- Custom dropdown list taxonomy not saved
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- How to show category list in WordPress
- Get post meta value outside of the loop
- Unable to create a new taxonomy
- Change link of taxonomy when get_the_term_list( is used?
- transfer two existing taxonomy terms into one custom metabox
- Custom taxonomy shows full articles
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Change the Page Title of the Archive Page for Portfolio Tags
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- qtranslate-x problem with custom term description
- Templates files for custom post type with custom tags
- Creating a Taxonomy Page [duplicate]
- Change order custom taxonomy
- Looking for suggestions on creating simple database (Help!!)
- Extra fields on categories that is available via the WP-API?
- Custom taxonomy – query returns an error
- Register custom taxonomy from a Advenced custom field option page
- List of taxonomy archive index page links
- Get Posts with matching lowest taxonomies
- How to randomise a custom taxonomy tag cloud
- How to get tags with custom taxonomy field?
- Primary Taxonomy for Post
- query posts returns 10 records
- Insert taxonomy term to different table
- Getting taxonomies specific to categories
- Remove Tag Cloud Words from Custom Taxonomy
- How to add/enqueue Custom CSS for a custom taxonomy page?
- wp_get_object_terms count on taxonomies within an category archive
- Prevent random entries in hierarchical false taxonomies
- Exporting CSV of users with custom user taxonomies out of WordPress
- is_tax not working for custom taxonomy
- Querying posts globally based on custom taxonomy with its own taxonomymeta table
- How to delete unused terms?
- Child terms with improper parent in the url should redirect to 404