ACF Date Picker being hijacked
-
Hi All,
I have a custom post type (CPT) that has an Advanced Custom Fields (ACF) WYSIWYG field where I”m using the “Insert Download” button to insert the DM shortcode into the WYSIWYG. This works fine. However, I also have an ACF Date Picker on this CPT. ONLY if I insert a shortcode on this page, does my Date Picker output get removed (it returns nothing). If I remove the generated shortcode, the date appears as expected. Is there something I need to do to prevent DM from hijacking the date? I’m using the following format FWIW:
Return Format: Ymd
$dl_date = get_field('dl_date'); //is $dl_date filled correct? or is it empty? $dl_date = (strtotime($dl_date)); $dl_date_pretty = date_i18n( 'F d Y', $dl_date);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ACF Date Picker being hijacked’ is closed to new replies.