My own metabox checkbox plugin only saves the last value I’ve checked
This is fairly simple to achieve, first rename the name attribute to my_categories[] this is then passed as an array. Then you will need set the values of each checkbox as the category id. In this way you can loop though the array my_categories[] and then set the categories present in that array. Here is … Read more