wp_insert_post_data is applied before the post data are inserted to the database. use the save_post hook instead to set the custom taxonomy terms.
That was it. Thanks Sally for the recommendation.
Related Posts:
- Custom Post Type with Custom Title
- what is the correct way to compare dates in a WP query_posts meta_query
- How do you use a CPT as the default home page?
- don’t publish custom post type post if a meta data field isn’t valid
- How do I append multiple taxonomies to the URL?
- Creating “static” taxonomies to choose from, inside custom post type?
- Search multiple custom fields by using meta_query
- Custom Post Type – Taxonomy Dropdown Menu?
- Custom Taxonomy Template Post List with Sort Order
- Admin Post Update Redirection to Posts Screen
- Add custom field to media attachment image attribute in post editor
- remove_action conditionally for Custom Post Type
- How can I customize “Pages” admin (edit.php) and “Edit Page” admin (post.php) for bulk edit of custom content type?
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily
- Related links – from other sites
- Saving repeated option values in a custom query
- Assign Taxonomy Based on Custom Field Value
- Assigning the same custom meta box to multiple post types
- Dynamically add / duplicate custom meta in custom post types
- How to insert content from another Custom Post type into Post?
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- How to structure a site with product variations pages?
- Cannot save CPT meta box
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- don’t publish custom post type post if a meta data field isn’t valid
- Redirect to another page using contact form 7? [closed]
- Categorise Custom Post Types
- custom post data – how to
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- How to customize work area / admin area in a custom post type without plugins?
- How to display custom field value on page?
- Add an Outside Wrapper to my Header and Make it Full Width
- Targeting categories in custom fields
- Display custom post type for specific user
- Make a custom column sortable by a value from a different custom post type
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- How to hide a custom field from admin?
- Problems making shortcode with custom post types and taxonomy
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Get post-meta value of all custom-posts – lowest to highest year-count?
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- How to keep a record of changes to a custom field?
- Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate [closed]
- How do I ensure that post_type and Taxonomy use the same slug?
- Question about link two types of data in wordpress
- Custom Form / Search with Custom Post Type Data
- Adding a location field to buddypress activity
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Sort custom post archives by a meta value from a different custom post type?
- Set a Default CPT taxonomy by taxonomy id
- Displaying posts inside table having issues
- Automatic Set Category For A Custom Post Type
- Convert attribute woocommerce terms (taxonomy terms) in posts of custom post type
- How to Disable option of meta field if that option is selected for any other post in custom post type?
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Custom Fields as Post Type Options
- Sort by Custom Post Type (Multiple Loop)
- Query Distinct Taxonomies of Custom Post Type
- Select Menu for Custom post Type does not save
- How can i display on front page a movie that is atached in a post type
- Query multiple post of which one by taxonomy
- add comments custom fields after user is logged in
- Exposing custom fields to the user in custom type post
- Creating post custom field text area
- Sort CPT by taxonomy AND THEN by custom field
- How to display *block number* instead *date value* on WordPress posts?
- Where can I find the missing page sections in wordpress?
- How to set a default format for a custom post type?
- echo value from ‘select’ field type into page template using cmb2?
- How to solve suspected memory issue in custom WordPress loop?
- Query multiple taxonomy in Custom Post Type
- automatically create taxonomy with same name as post title
- saving custom post type data to different table in wordpress
- Query post types with multiple keys
- Remove “-2” from a Toolset Types URL with the same post name
- Custom Post Type and Taxonomy combination
- Can’t unregister parent theme’s CPT from my child theme
- Get Post Primary Category
- How to check the terms in single custom post type template
- How can I move a custom taxonomy and its data from one post type to another?
- Bulk Update Custom Fields for Custom Post Types
- Including metaboxes from custom post types in global search — continued
- Facebook social publisher and custom post type fields [closed]
- How to get specific post meta by title or id
- Populate a custom field dropdown with post titles by author
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Get assigned post categories
- Create custom WP_List_Table in post_type
- Writing a custom Glossary plugin
- Why this didn’t work if i use get_the_ID(), but works if i pass the numeric id
- How to stop wp_query searching pages as well as the specified CPT
- Custom post type functions.php if statement on action
- how to implement club post type
- Slideshow/Gallery plugin based on WP Core Gallery [closed]
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- How to automate the creation of advanced layout article/post
- Redirect drafted post of custom post type to URL?