Support

Account

Forum Replies Created

  • Thank you, @John Huebner! I just tried this and it works beautifully. The good news is that multiple values were not enabled. The only wrinkle was that the field was set to return the Post Object instead of Post ID, so I had to adjust some code and replace get_field() calls with get_post(get_field()).

  • Thank you, John. I guess my options are to roll back to ACF4 or create a dynamically populated Select field. Unfortunately, I have the problem of 2,000+ existing posts with data in Post Object fields…

    I don’t mind rolling back to the functionality of ACF4, but I’m concerned for the long run, whether v4 will receive future security and WP compatibility updates, or if it’s a discontinued version.

  • This suggestion just came from ACF Support:

    I would suggest that you use the “acf/update_value/type=date_time_picker” filter to hook in and change the value being saved to a timestamp using the strtotime() function. Please take a look at the following resource page for more info on this:
    https://www.advancedcustomfields.com/resources/acf-update_value/

  • Thank you so much, John. I think I’ll mirror the site and try this. The posts are too important – a school calendar in daily use.

    Joanne
    bocacommunity.org
    bocachristian.org

  • Thanks, John. The writeup for the Date and Time Picker Field add-on says “ACF PRO 5.0+ is no longer supported, ACF PRO has its own date and time picker” so it looks like I’m up a creek because we have more than 2,000 existing posts in the add-on format.

  • I have a similar issue. The prior free version 4.4.12 stored the Date Time value as a timestamp by default. I’ve found that the free 5.7.6 version stores the Date Time value as YYYY-MM-DD HH:MM:SS, with no option to store it as a timestamp. The database update that went along with 5.7.6 did not change the old Date Time values to the new format. After a couple of days of use, we discovered that the part of our website that depends on Date Time was broken because the database had mixed format values. I was forced to revert to a site backup done before the plugin update, losing a couple of days of work.

    I posted a support ticket to ACF but have not received a response. I’m sure they’re overloaded with support issues this week.

    Joanne
    bocacommunity.org
    bocachristian.org

Viewing 6 posts - 1 through 6 (of 6 total)