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?
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- How to force one column layout on custom post type edit page?
- How to limit the number of terms (terms acts like categories)
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- How I check if the same post slug has not been used before publishing?
- Display posts in random post types
- Weird problem happening with custom taxonmy when creating/updating posts
- WordPress custom meta field for custom post not storing data
- List all images from a single post meta value
- Query Multiple Taxominies Across Multiple Post type’s
- Validate custom fields before save using WordPress Rest API
- Random image from tag/custom type on sidebar
- Update Post Meta for a logged in user
- Problem querying Custom post type by custom fields
- Using custom field content as expression in IF statement [closed]
- Linking from CPT page to taxonomy.php
- Page not found for custom post type UI plugin and taxonomy
- How to inherit field value from parent post into in child / sub post
- Only show columns in custom post type?
- How to constrain the results to a specific post_type on tag archive page?
- Display related CPT with custom taxonomy
- How to only display all posts to a custom User Role?
- Store a value in global scope after init hook is fired
- How to get current post type?
- save_post affect creation and deletion
- Wrap an X amount of taxonomy posts in a separate Row in WordPress
- I want to split this into two functions
- Repeatable Custom Field for Media Upload
- How to apply order on custom taxonomy and custom meta key on custom post type
- How to store datetime from custom meta box so that it can be sorted by
- Display ACF object field data using Elementor Custom Query