First in checkbox value use taxonomy id not the name of taxonomy.
For save more than one taxonomy relation related to a post in wp_term_relationship
table use
$theme = $_POST['specialities'];
wp_set_object_terms( $post_id, $theme, 'activity_category' );
“wp_set_object_terms” will save checked taxonomy value to “wp_term_relationship” table with post id.
Related Posts:
- How to add a default item to a custom taxonomy?
- Automatically Assign Parent Terms When A Child Term is Selected
- get term by id without taxonomy
- wp_set_object_terms() — prevent overwrite?
- Taxonomy terms sort by… Last name!
- get_terms with posts that have a different taxonomy with term x
- How to have “the most used tags” taxonomy always expanded?
- Get parent and first child taxonomy terms?
- Count posts for each taxonomy term for each month
- tax_query: What to pass when I want to have all terms?
- Custom Roll/Custom Post Type – Can’t Select Categories
- Add a term to an attachment submitted from front end
- Get and loop posts with all taxonomy terms
- taxonomy/category term in URL slug irrelevant for post?
- How to use a Term Meta Field as a link
- Embed YouTube video on category description
- what tables uses wp_get_post_terms
- Manually query posts by taxonomy with MySQL
- Custom Taxonomy leads to 404 page
- Show only, when taxonomy has posts?
- Convert Custom Post Types to Custom Taxonomies
- How do I query a taxonomy term range
- List a current posts’ taxonomy terms in a widget in WordPress
- Should I be using custom post types for this or terms and taxonomies?
- get_terms problem : related articles
- Set post terms on post publish
- Why “Warning: Invalid argument supplied for foreach()”
- WordPress User Taxonomy Saved Values
- Display Taxonomy Description on edit-tags screen?
- How to display terms from a custom taxonomy in a hierarchy AND with custom html markup?
- get_the_terms error
- extend HierarchicalTermSelector function with custom renderTerms
- Searching in wordpress using wp_term_taxonomy table
- “AND” relation in custom taxonomies
- Attaching taxonomy data to taxonomy with wp_insert_post
- Problem with orderby
- Taxonomy archive + query attachments = duplicate results
- Exclude posts which have any term in a certain taxonomy from the query
- the_terms characters not limiting
- Hierarchical list of custom taxonomy terms
- is_taxonomy() is not working
- Categorize wordpress tags
- How can i count post from my post type taxonomy
- How to return newly added terms when using wp_set_object_terms
- Blogroll links sorted by category in a table
- How to update a taxonomy term for a custom post type with auto incrementing number
- How to relate a user object to taxonomy term?
- Filtering elements by taxonomy slug
- Echo taxonomy name – second level
- Taxonomy vs Post Status
- Declaring arguments for taxonomy
- Prevent certain subscribers from seeing specific taxonomies (changes frequently)
- child_of not working in wp_dropdown_categories
- How to display posts from two taxonomies?
- Using taxonomies to handle layout?
- Return single taxonomy term outside the loop
- How to relate to 2 taxonomy with category
- WP Search using taxonomy terms
- How to embed the Taxonomy Admin screen in to a Tab of a Settings Page in a plugin
- Calling an Archive Page with specific Tag/Tax ID
- Assign Multiple Values from Post Fields to Taxonomy Terms
- how can send a parameter by click on gender-link to filter a post by gender and product taxo
- How do I converge taxonomy category permalinks into one?
- Url leading to archive page, no matter what
- How to show taxonomy on front page
- Taxonomy.php inheriting first post
- How best to add Author or Artist to product
- Display related terms from a taxonomy in an entry
- Order custom taxonomy hierarchy
- Including taxonomy in searches
- Different Sidebar for same Taxonomy
- I want to get term by term_name without taxonomy
- How Do I Register Two Taxonomies with one Parent of the Other?
- taxonomy terms, inverted
- Translation ready code format for taxonomy
- Create multidimensional array of taxonomies
- how to display taxonomy name in do shorcode php tag
- How to share terms between two taxonomies?
- Can I have have terms with the same slug in the same taxonomy?
- How to customize taxonomy edit page
- Taxonomy Rewrite Problem
- Taxonomy terms can’t find posts from archive.php or taxonomy.php
- Categorizing posts by location
- How to filter the terms to a special custom taxonomy?
- Hiding an Advanced Custom Field based on Taxonomy Field selection
- Non-Recursive get_term_children()
- How do I add tags/taxonomy to images + a query field on page to query ‘albums’ (images with same tag/taxonomy)
- Delete Term via edit-tags.php
- How can I create gallery of products and submit data for each product?
- Description of a sub-taxonomy
- Order taxonomy terms by the frequency of use in the last 30 days
- Why can’t I exclude a term ID from either get_terms or WP_Term_query?
- get_term_link doesn’t work
- What is the ‘selected’ parameter in wp_dropdown_categories() for?
- Taxonomy works in local XAMPP but doesn’t work live
- I need to add new menu item inside the custom post admin menu
- Append taxonomy url
- get_terms of specific parent (including the parent itself)
- Display taxonomy terms when adding a link in the admin
- Bulk import in custom taxonomy