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?
- Category display using conditions
- Where can I find the missing page sections in wordpress?
- attach CPT data to a taxonomy
- Displaying multiple post types on home page
- Get_the_terms restrict output
- Populate a custom field dropdown with post titles by author
- Conflict between wp_list_pages and get_posts – list pages not displaying
- How to make a pulldown menu display custom meta terms in a theme?
- Custom post type menu
- How to conditionally add Custom Post Type to Front Page
- How to inherit field value from parent post into in child / sub post
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- finding and using post type fields in WordPress
- sortable columns for multiple custom post types not working
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- hide specific div on single.php [closed]
- Custom Taxonomy Search result page
- How to insert data into meta box from another plugin?
- WP_Query orderby not work with meta_key
- How check if a post is saved from backend or frontend?
- echo selected value from dropdown
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Query all post and CPT from 2 specific taxonomies AND by ACF custom field
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Custome fields not displayed
- Get Posts by Category, Tag , and CPT Taxonomy
- Proceed to the next video of the custom post type but remain on the same post
- why post_class() function apply css classes to all other files?
- search custom post type by custom fields on front end
- Show Taxonomies with admin area for custom post type?
- WordPress custom API endpoint – how to make the request more flexible