Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post
I’m taking multiple location values with each post, so it’s an array (always). My post meta form field is like so: <select name=”<?php echo $project_prefix; ?>offer_locations[]” id=”<?php echo $project_prefix; ?>offer_locations” required multiple=”multiple”> … … … </select> If the post already exists without any value for locations, the existing value will come null, but as the … Read more