Hi Robin,
I can reproduce your problem.
The problem is that you set that format in the custom field column to date. This automatically add inline edit support for the column with a date picker. The only problem is that we don’t know which format for the date is used in the database. That’s why we have a plugin for ACF but not (yet) for WP Types. WP Types uses a timestamp format as date and that doesn’t work with our code.
You can get and save the correct date format for types by using the following filters. Just paste them in your function.php and it should work for WP Types dates.
function cac_get_types_date_format( $value, $column ) {
if( 'date' == $column->get_option( 'field_type') && strpos( $column->get_option( 'field'), 'wpcf') !== false ){
$value = date( 'Ymd', $value );
}
return $value ;
}
add_filter( 'cac/editable/column_value', 'cac_get_types_date_format', 10, 2 );
function cac_save_types_date_format( $value, $column ) {
if( 'date' == $column->get_option( 'field_type') && strpos( $column->get_option( 'field'), 'wpcf') !== false ){
$value = strtotime( $value );
}
return $value;
}
add_filter( 'cac/inline-edit/ajax-column-save/value', 'cac_save_types_date_format', 10, 2 );