Save records to category_posts table

May need some additional error checking, but I tested with multiple groups, single groups, and allow multiple on and off.