Hello!
Kind of a complicated question here. I have a custom post type that has posts created programatically when a new item is created in SoundCloud. These posts have ACF fields – among them is an event_date field that is a datepicker. All is working perfectly with the post creation. The issue is that I display those posts on the front end of my website and they are sorted in DESC order on the event_date field. However the posts appear out of order when they are first created. If I open up the post in the WP Admin and then save them (without changing anything) then they will be correctly sorted. Its like that field has to be re-initialized after the post is created programatically with a manual save. Any ideas how to resolve the issue without going into each post? I did build a cron that ran wp_udpate_post on each post with just the post ID as an argument, but it didn’t resolve the issue.
Thanks!