Hi,
I’m trying to return only date in a custom field for post-grid, and only time in another custom field.
function post_grid_filter_html_media_extra($html_media){
$loop_post_id = get_the_id();
$acf_meta_key_valeur_autre = get_field( “_event_start_date”, $loop_post_id );
if(!empty($acf_meta_key_valeur_autre))
return ”.em_get_the_start($post_id, $time ).”;
}
add_shortcode(‘acf_test_autre’,’post_grid_filter_html_media_extra’);
This code return always both (date and time). Do you have any idea about a solution?
Thanks