Support

Account

Home Forums General Issues Deleting repeater rows Reply To: Deleting repeater rows

  • I knew it had to be something easy. Had to modify it tho because I still had the problem with duplicating rows.

    $getRows = get_field($field_key, $thisPost);
    
    if(!empty($getRows)) {
    	for($i = count($getRows); $i > 0; $i--) {
    		delete_row($field_key, $i, $thisPost);
    	}
    }
    

    Thanks for helping!