Update your form to include the term-id, instead of just <input type="checkbox" />
use <input type="checkbox" name="taxonomy_id[]" value="'. $industryterm->term_id .'" />
. That way you are actually sending along some values, in this case the term id.
And in the args for wp_insert_post()
make sure to include something like this:
'tax_input' => array(
'industries' => $_REQUEST['taxonomy_id']
)
Related Posts:
- Get Posts Under Custom Taxonomy
- Removing filter dropdown in posts table (in this case Yoast SEO)
- Displaying the category name of a custom post type
- Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
- Create new category upon save based on post information
- meta_box or custom_field as a second tinymce post-instance?
- Custom Taxonomies Incorrectly Counting Revisions?
- wp_update_term is always launched after wp_insert_term
- Adding Multiple Values to a Post Meta Key
- How do I get the slug of a custom taxonomy category of a post?
- How to display different single post template based on author?
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- wp query with dynamic taxonomies and terms?
- Get Posts via Taxonomy Term Name with Space
- Why won’t my taxonomy query show up?
- How to set up multiple taxonomies for groups of posts
- Sidebar links for different pages
- Preserve term order per post in a non-hierarchical taxonomy
- Get posts by name and taxonomy term
- Choose whether to automatically add a taxonomy with the same name as the post
- How to insert 2 args into 1 Wp_Query for a slideshow
- Help with Taxonomies
- Posts list in custom taxonomy
- Get Posts Under Custom Taxonomy
- How to render taxonomy in loop of custom post_type
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to allow visitors to filter posts by multiple taxonomies
- How to add tags (custom taxonomy) to post class css?
- Saving custom fields to a custom taxonomy
- How to get Tags with specific post id
- Displaying posts that belong to a specific author
- Get posts and include taxonomy term
- Display posts of specific category term
- How to show a custom taxonomy in the theme?
- Check if current user has a post and that post has any term/s from a specific custom taxonomy outside the loop
- Programatically adding custom filters to post list
- Limiting post list by taxonomy
- How to Rearrange WordPress Tags list on frontend using Shortcode with specific order?
- How to associate a custom taxonomy to a post multiple times
- How to edit a custom theme?
- Filter posts by month (dropdown)
- Query to fetch custom taxonomy along with post title
- Dropdown Select Post Filter
- how let users select categories for posts in frontend?
- If taxonomy has more than 6 posts, display show all
- filter buddypress users posts by user ‘xprofile’ custom fields
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- My custom query is displaying random posts in random order
- How to get post count including nested categories
- Custom Taxonomy From Database
- Multiple loops on a Search result page?
- Separate categories parents, childs and grandchilds in dropdowns
- display post according to the term
- Display post by select it from a dropdown menu
- Difference between an archive and a page listing posts
- the_post_navigation seems to ignore same category filter
- How to avoid duplicate posts on front page?
- Remove some articles from the list in WPAdmin for a user
- Pagination – Posting First Page Content
- How to show featured image in custom post type dashboard post page
- Notification to Admin or Author upon new post [duplicate]
- Is there a way to apply WordPress categories at the block level?
- Featured Image uploaded, attached and set but only appearing in the media library
- CF7 upload file failing [closed]
- Hightlight unread posts or new posts since last login
- Editing 375 posts simultaneously? Maybe from the database?
- Why does WP_Post not contain its permalink?
- How Do I Get My Post Tags to Alphabetize?
- Remove Featured Image & All Media Uploaded to the Post
- Transition from Draft to Scheduled Post with wp_update_post
- Query posts and filter at query time by value of custom meta
- Delete post revisions only for a single post
- wp_set_object_terms NOT working on CPT, but wp_set_post_terms does
- Update post meta within save_post action
- Auto delete posts based on content text
- Count the number of a post types associated with another post type
- How do post IDs work in WordPress?
- Get Users Post ID
- add_rewrite_rule and template redirect not working
- adding my posts (author posts) in menu
- How to separate each individual blog post?
- Allowing Users to Register Themselves and Post : Does WordPerss Handle these Problems?
- DEL media from the post but keep my featured image or post
- wp_trash_post() duplicates post to trash
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- Create Posts from API response without duplicates
- Can I Paginate Post after every 25 tag?
- How to show posts ordered by random [duplicate]
- Query posts from newest category
- Trim excerpt to first paragraph
- WordPress loop uses unmodified posts array, why?
- Create new post on user registration
- Skip posts, but keep posts per page
- Display only posts with comments
- Display ONLY Latest Post From Several Categories
- WordPress Page Column Problem [closed]
- If meta_key exists then don’t select this post?
- Undefined Function Fatal Error with Shortcode [closed]
- How to sort posts alphabetically based on a specific parent category