According to the docs, I needed to set the terms using post ID. So after every insert, I used the ID to set the terms https://codex.wordpress.org/Function_Reference/wp_set_post_terms
Someone might find this useful.
Related Posts:
- How to Add Custom Taxonomy To Woocommerce Plugin
- When we register a custom taxonomy or post type, does the WP database modified at all?
- register_taxonomy with multiple object type and update_count_callback
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Display custom taxonomy as dropdown list
- Best practice for adding posts in bulk
- Set object terms not working on plugin activation
- how to add extra meta box or textarea into custom post types
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Adding a custom post type taxonomy template in plugin
- How can I make a custom post type sticky?
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- Metabox not show in categories custom post type cmb2
- How to change permalink to include custom post type
- Custom Post Archive is not working
- Show all tags on custom post type
- How to hook WP initialization without modifying functions.php
- Getting only one post per category
- Multiple archives to display parent and subcategories content
- Store a value in global scope after init hook is fired
- Is it possible to arrange Custom Post Types from CPTUI into a Folder?
- Filter Custom Post Type Posts by Taxonomy
- Insert custom taxonomy into category query
- CPT UI: Connect a custom post type to a custom post type
- Create Inclusions and exclusions
- Show custom taxonomy not in submenu
- How to Fix WordPress 500 Internal server error due to custom post type
- Plugin Error on activating
- Plugins for putting Custom Post Types into the Menu
- How to Create Short Code Using Custom Post type
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Get terms by taxonomy AND post_type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Get Custom Taxonomy ID within loop
- Custom Post Types not showing on Custom Taxonomy archive page
- custom post type or taxonomy
- Highlight menu item when on a custom post type?
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- How to setup a Custom Taxonomy Term template
- Admin to user notices – best practices?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Custom Taxonomy List links being re-written
- front end radio custom taxonomy with custom post type
- Bulk 301 redirect for custom post type
- Associate Taxonomies Across Post Types
- ‘category__and’ for custom taxonomy?
- Custom post query by taxonomy
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Display custom post type category taxonomy
- How to make a custom taxonomy selectable in post publish area?
- Only show posts from a certain category?
- List Post Title by Last Word Then Second Last
- Customize Query for post
- Display post as term id
- How to filter wp_list_categories output with some custom post type meta query?
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Advanced search form with filters for custom taxonomies
- Why cant I add a custom post type to a custom taxonomy?
- Show Custom Taxonomy title in loop
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Post Type Dilema – How do I categorise by country?
- Can I query posts by taxonomy conditionally based on post type?
- Which file/template is in charge of taxonomies for custom post types?
- How to get dropdown instance value in WordPress custom Widget
- Include custom post type custom taxonomies in Categories widget
- custom permalink for post only not custom post types
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Get Terms from Custom Taxonomy and Current Post
- Check when the post type changes, and display content
- Loop and add Specific Categories and Products Images
- custom post archive URL is wrong
- Custom Post Type with Different Sets of Post Content?
- Add a class to a div if custom post type has specific terms?
- Custom post type paging return home page
- In child theme, add CPT to custom taxonomy registered in parent theme
- Custom taxonomies not displaying in some custom posts
- Custom taxonomy returns 404 even with saving permalinks
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Custom Post Type works when registered in functions.php but not when registered in plugin
- Custom post type shortcode with taxonomy attribute not working and no errors
- Set a Default CPT taxonomy by taxonomy id
- Custom taxonomy terms registered not showing when added in child theme
- Custom post edit page permalink links to edit page rather than the post
- How to create groups like that in buddypress?
- Show tags of custom post types in WordPress
- Display all Custom taxonomy terms and their relevant custom posts
- get_post_types doesn’t work in plugin
- Query Pulling the same post twice
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Custom My account page and custom page for editing posts
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Require Custom Taxonomy for Custom Type
- Create a hierarchical list of posts that’s grouped and nested by category
- Failed to update a post when I add a taxonomy to it
- Show a wordpress custom post condtionally using a category term