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?
- get post type plural
- Taxonomy count per Post type
- Load custom posts with same tag as page
- post_tag taxonomy with custom 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()
- Find callback function for custom taxonomy metabox
- Get posts with tag all post types
- Search Custom Post Type with all meta attached?
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- 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 metadata not appearing in public API
- Custom post type with tags
- Tag.php not displaying posts with the tag
- Registering tags taxonomy for a custom post type
- Query for custom posts with a specific tag slug
- Categories and Tags not working!
- 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
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Navigation menus not showing because of custom post type filter
- How to make a custom taxonomy selectable in post publish area?
- How would you associate location data with a post?
- 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?
- Can custom taxonomies items have attached properties?
- Change Permalink Structure for Tag.php template
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Does anyone have a plugin that could automatically tag custom post types in wordpress?
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- How do I get the intended post type of a revision post?
- Can’t query tag and post_type at the same time
- Group posts by custom post type
- Tag page with Custom Post Types not returning any posts
- Custom post types and tag archive pages/permalink structure issue
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- 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?
- Custom Tag Description unable to display just below and outside of the Loop
- Database to page routing API?
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
- Cross reference custom post types
- How to get all tags of a custom post type by id
- How can I show 1 featured post in a styled element, and the next few below differently styled
- Pros and cons of a custom page vs custom post type template file
- Show all tags on custom post type
- Best way to specify “article type” in URL
- Tag page only display 10 posts
- 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?
- Display posts with tag for custom post type only
- 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?
- portfolio custom type tags support
- Custom Post Type Tags Showing Under Regular Post Tags
- Return all wordpress custom posts in specific multidimensional array
- get tags from custom post type
- custom post type tags
- Query Custom Post Type by Tag
- Display by tag from different post types
- Tags and Taxonomy links not working for Custom Post Types
- Tag-post relationship problem
- Post type cloud like tag cloud?
- WordPress 3.1 – Tag page not showing posts from custom post type
- wp_insert_post not working for custom post type?
- Attaching multiple custom taxonomies to one CPT?
- 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
- display posts, pages and custom post types from another wordpress site
- How to consume external API from WordPress post editor and display the response data in the custom field?
- Appointment booking system in WordPress
- ACF – Tags not showing up in Custom Post Types
- Tag template for Custom Post Types
- Search for portfolio tags & mixing portfoliotags and post tags
- Post current post type to my Ajax