Hi @James:
If you have the post ID of your newly created post (the $created variable from your question) you use the wp_set_object_terms() function, for example:
wp_add_post_tags($created,'My First Tag');
wp_add_post_tags($created,'My Second Tag');
wp_add_post_tags($created,'My Third Tag');
Related Posts:
- List all the tags from a custom post type
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- tag.php doesn’t work with tags on a custom post type post?
- How can I include custom post types on a tag page?
- Taxonomy count per Post type
- Adding post tags to custom post types
- REST API: How can I restrict a custom post type to only be accessible by authenticated users?
- show tags of custom post type ONLY
- Tag list & tag index for custom post type
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Search Custom Post Type with all meta attached?
- Custom post type tag archives don’t work for basic loop?
- How to create download links based on Custom Fields with Rewrite API
- Exclude Custom Post Type & Pages From Auto-Tag Function
- Adding An Author Tag To Posts Automatically
- How to search from specific post type with tags?
- Custom post type with tags
- Registering tags taxonomy for a custom post type
- associate custom post type with tags with specific pages
- Is it possible to make tag archive page specific to Custom Post Type?
- Search doesn’t find tags or categories in custom post types
- Navigation menus not showing because of custom post type filter
- How to make a custom taxonomy selectable in post publish area?
- Add Tags to custom post type
- Where to store custom tagging data associated with a custom post type
- Custom Post-to-Post with multiple parents?
- Change Permalink Structure for Tag.php template
- How do I get the intended post type of a revision post?
- Can’t query tag and post_type at the same time
- search also in taxonomy, tags and custom fields
- Custom post type getting wrong categories and tags
- Listing tags from a custom post type
- wp_update_term_count_now doesn’t work with a custom post type?
- Add tag to a custom post type doesn’t change the total of custom post type in backend
- Make parts of your wordpress website completely built with data from external APIs?
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- Show all tags on custom post type
- data-type=”” … needed post tags stripped of characters
- Dynamically output a class to an anchor tag depending on what tag is chosen
- CRUD operations in wordpress
- How to display custom post type tags?
- Meta data (Tags and Categories) for Custom Posts not showing.
- get_the_tag_list() returns bad links
- Tags not working in my custom post type
- How to list tags from custom post type attachments?
- Strip Characters From Tag Name
- Why does my taxonomy have a category style div id?
- How can I create an automatic drop down menu with my tags?
- display custom taxonomies limited to custom post type?
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- WordPress admin display post type tags as checkbox
- WordPress custom API endpoint – how to make the request more flexible
- The Difference Between Categories and Tags and Taxonomies and Terms
- Custom REST endpoint not working to retrieve single posts (“rest_no_route”)
- WordPress as a backend for external service? [closed]
- Print all the tags from a custom post type
- 404 Page Not Found on /Page/2/ on Tag Page
- How to constrain the results to a specific post_type on tag archive page?
- Default post_tag for custom post type
- Custom posts – tag pagination
- add custom tags for custom post type in wordpress
- How to Display the tag content of Custom Post?
- Custom post type tags not showing in search
- Issue with Custom Post Type Tags
- Tag template not returning posts [closed]
- One post auto attached to many another items
- Navigate by Tags inside a custom Post Type
- Search CPT by tag ids
- How to Grab Anime info using Jikan API and fill the value in Metabox
- How to set “section categories”?
- How to display “META” array in register_taxonomy
- How to convert Post Object Custom Field into Tags
- Custom Post didn’t display on tags page
- Automatically / dynamically populating tags in custom post type
- WordPress API only returning HTML
- Rewrite url post_tag for custom post type
- Custom Post Type tag taxonomy “Page Not Found”
- Do not output category and tag URLs
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- How can I include custom post types on a tag page?
- Filter custom post type by tags
- Loop multiple taxonomy in custom post
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom Post Type – Admin Columns
- Generating List of Tags from Custom Post Type
- Archive.php is not displaying tags
- Custom Post Type Tags Showing Under Regular Post Tags
- Return all wordpress custom posts in specific multidimensional array
- custom post type tags
- Tags and Taxonomy links not working for Custom Post Types
- Post type cloud like tag cloud?
- wp_insert_post not working for custom post type?
- how insert how many post type in this function?
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Custom plugin contact form connecting to mailchimp API
- Appointment booking system in WordPress
- ACF – Tags not showing up in Custom Post Types
- Search for portfolio tags & mixing portfoliotags and post tags
- Post current post type to my Ajax
- How do I edit this code so that it also adds specific meta data into the user and subsequent CPT being created?