You changed the checkbox’s name attribute value. You should use the same name value: terms[$taxonomy][]
This should fix the code:
if (is_taxonomy_hierarchical($taxonomy))
//$out .= "<input class="{$term->term_taxonomy_id}" type="checkbox" value="{$term->term_taxonomy_id}" name="{$term->term_taxonomy_id}" /> {$term->name}<br />";
$out .= "<input class="{$term->term_taxonomy_id}" type="checkbox" value="{$term->term_taxonomy_id}" name="terms[{$taxonomy}][]" /> {$term->name}<br />";
else
// $out .= "<input class="{$term->term_taxonomy_id}" type="checkbox" value="{$term->name}" name="{$term->name}" /> {$term->name}";
$out .= "<input class="{$term->term_taxonomy_id}" type="checkbox" value="{$term->name}" name="terms[{$taxonomy}][]" /> {$term->name}";
}
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Custom Post Type Plugin not loading category template and loading 404 instead
- Using WP Category Lists Plugin to Dynamically Display Category (PHP)
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Customize permalink wordpress category id
- Individual testimonial taxonomy not displaying (white screen)
- How do I apply style to each category of a list?
- How to check if a taxonomy not exists in a plugin
- I receive taxonomy id
- .php file for woocommerce edit category? [closed]
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Visual composer custom element error
- Push Contact form 7 variable to front end after submission
- Precheck fields when I add a new post
- How To Toggle User_Meta in frontend in a form using PHP
- Unset plugins on front-end belonging to specific category
- Custom SportsPress list
- How can I display a list of only categories which are marked as ‘featured’ in the backend?
- Related post based on 2 categories
- AJAX doesn’t pass variables to the php function in the plugin
- Showpost and last
- Working on fixing wp-front-end-editor, encountering undefined index
- Display static pages instead of category, in code
- WordPress User Frontend Editing Custom Fields
- Is there a way to combine categories and their hierarchy into the admin listing page?
- Visual Composer Data Source?
- __(): What if I have to pass in a variable?
- How can I make my custom shortcode work in a Custom HTML Widget?
- PHP Deprecated: Non-static method should not be called statically
- WordPress Hook that will run when media file deleted
- Qtranslate displays empty categories with get_categories()
- Post source link plugin – small modification
- Which hook callback has priority if both plugin and theme use the same hook?
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Check if a class exists within a method
- How can I make the “Preview Post” button save and preview in the same window?
- Datepicker not supporting timepicker
- Escape special characters in image link
- Cannot run the code after I activate the plugin
- Displaying admin notice dynamically
- Get total number of comment of the posts written by an author
- Show Heirachy of categories in WP Download Monitor
- printf – problem to understand code
- Auto delete WordPress users according to time
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- add_query_arg not working
- Programatically download a plugin
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- Theme my Login plugin, how to update fields
- CSS from textarea in options page to frontend what to do
- wp_set_auth_cookie causes 403 error in the wooCommerce checkout
- add image crop function like in wp customizer
- Custom Pages for Woocommerce Product-Category Pages
- Using arbitrary paths in page urls
- WordPress call_user_func_array() expects parameter 1 to be a valid callback, class
- Why is my custom post type not being activated on plug-in activation?
- What happens when WordPress memory limit is exceeded?
- Any idea how to get something like this to work? [closed]
- wp_dequeue_script for a Plugin
- How do I add $_SESSION[”] to my wordpress page?
- Built a second plugin but it overwrote the first one
- WordPress: Add custom add_filter for custom functions
- How to change layout of shop page in wordpress? [closed]
- preg_replace() No ending delimiter ‘.’ found [closed]
- WP Insert Post If user refreshes override new post
- implement custom roles in custom plugin
- How to get current cart values using WC_Shortcodes?
- How to authorize viewing and clicking a function only logged users?
- Custom Post Type with Sequence ID
- How to arrange custom posts in the backend/admin by custom taxonomy
- WordPress default post categories meta box widget
- Multiple Tag Filtering
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- implement checkbox or toggle switch in plugin code
- Custom Field used to allow a Free Story; no longer works
- How to send new visitor to a splash page for only one time in wordpress?
- WordPress User profile with Avatar upload on the front end without plugin?
- Cron job shedules replace?
- Trying to remove a couple categories from shop page
- Can i add custom code in Source in specific page, Header from function.php?
- Get custom term link archive with prefix
- GET web api method from a WordPress PHP script
- Adding link on title its in description but not in title see screenshots attached
- How to add featured image on front end form?
- How to save information related to post in database?
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Page doesn’t load
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Xml output not places where i want
- How to fix ‘Call to undefined function do_settings()’ error?
- Passing an input variable through a switch statement
- How to make horizontal scrolling menu [closed]
- Function not being called on form submit, only blank admin-post.php page
- WordPress Convert queries to slashes using function.php
- Failed to update a post when I add a taxonomy to it
- plugin doesn’t retrieve data from database
- Display Any Field fromAdmin Panel in Frontend via Shortcode?