acf_date parameter formatting bug?
-
I don’t think the acf_date parameter is working with the date_format parameter.
[field acf_date=datetimepick]correctly displays the Unix timestamp, eg. 1604016000
[field acf_date=datetimepick date_format="Ymd"]displays no outputAs suggested, I have the Advanced Custom Fields data time picker stored as a Unix timestamp.
I’ve had to resort to using a workaround using the Insert PHP Code Snippet plugin, to define a shortcode, eg [xyz-ips snippet=”showdate”] with the PHP snippet:
Shortcode PHP Snippet:<?php the_field('datetimepick');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘acf_date parameter formatting bug?’ is closed to new replies.