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?
- jQuery function didn’t work in my plugin
- Displaying admin notice dynamically
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- bulk change of image setting “link to” to “link to: image url “
- Displaying Gravity Form data on WordPress page [closed]
- Handling jQuery Component Collision
- Improving a Stackoverflow “inspired” badge system to display badges in author page
- Get a list of galleries from an album in NextGEN Gallery [closed]
- How to install and activate a plugin via an external PHP script
- how to include a simple jquery file into a wordpress plugin
- Calling a plugin in theme development
- Display a text message if the field is not found and not if found
- Unable to activate wordpress importer after installing it
- Reposition Woocommerce Message
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- Get total number of comment of the posts written by an author
- How do you remove plugin edit option?
- Escape when echoed
- Scope for PHP Variables Assigned in functions.php or a plugin
- add_meta_box (Will display only in specific page admin WordPress)
- Make specific products accessible only to a user role in WooCommerce
- force customers to add only single item to card per purchase EDD [closed]
- Undefined property: WP_Post_Type::$ID
- Plugin exceeds memory limit
- How to get post URL in the_content filter?
- How to remove xmlns on language_attributes()?
- How to write one comment and publish on every post using database or plugin?
- Add a plugin before main container
- Shortcode to generate and save password in a file
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- How to get member list based on role by using buddypress?
- I don’t understand how this parameter works..?
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- How to initialize something in unit test before the init hook being called?
- Show Heirachy of categories in WP Download Monitor
- Missing argument 3 for wp_register_sidebar_widget()
- Make id column as AUTO INCREMENT on plugin activation
- How to Include a Loop Template File in a Plugin
- Write to / remove from default .htaccess file from plugin?
- Get Post Primary Category
- Update Option Error: Notice: Undefined index
- How can I display a contact form for out of stock products in WooCommerce?
- Pass a php string to a javascript variable
- get shortcode value
- How to get number of Affected rows from wordpress dbDelta() function
- Show price with Geo IP location
- WordPress Ajax Callback
- Add category to body class
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- Plugin Development sqlite or WordPress’ database
- How to review WordPress website php version compatibility?
- printf – problem to understand code
- Sending email from inside a plugin using PHP PEAR
- Auto delete WordPress users according to time
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- Display content from custom post type if match to main post category
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- How to trigger $_GET request within admin plugin page?
- Wp favorite posts get user favorites in profile using buddypress [closed]
- How can i list random post from multiple category?
- Storing Options in a Shortcode
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- How to generate video out of images via WordPress plugin
- Taxonomy filter all children
- How can I get WordPress to save comments in markdown format?
- add_query_arg not working
- problems with wordpress and php version 5.3.3-1
- My Category is too big on the Menu what can i do?
- Getting a List of Categories for Use in a Plugin?
- WooCommerce get_price returning wrong price when used via ajax
- How to ‘clone’ a wp plugin to make small changes
- Not able to open category post [closed]
- Open Post Thumbnail in New Child Theme File in WordPress