$rule ): // validate rule $rule = acf_validate_location_rule($rule); // append id and group $rule['id'] = "rule_{$i}"; $rule['group'] = $group_id; // view acf_get_view('html-location-rule', array( 'rule' => $rule )); endforeach; ?>