Multiplicate entry on update_post_meta
<?php // Check to make sure array is ready if( isset($_POST[‘activite_dates’]) && is_array($_POST[‘activite_dates’]) ) { // If we have an array ready to save delete all the previous data delete_post_meta( $post_id, “dates”); foreach($_POST[‘activite_dates’] as $date) { // Use add post meta instead of passing the array directly in add_post_meta( $post_id, “dates”, esc_attr($date)); } } $dates_gf … Read more