Trying to understand the date format and where these items are set. In test site we were using the Custom post type, Advanced Custom Fields and Toolset. The Events were created manually.
In the production site:
Events are created in NEON CRM and downloaded to a xml file via api.
XML file is imported into Advanced Custom Fields via plugin WP All Import and Events are created based on import.
As far as dates being set here is what I have:
Date Setting in WordPress is set to: Ymd
Date setting in Advanced Custom Field start_date field is set to: Ymd
WP All Import does not set a date. It just pulls info over from xml file and places in custom post type advanced custom fields.
In the XML file looks like date is set to: 2017-01-14
But once its placed in the start_date field in a event post it is set to: 20170114
These are the dates set in the NEON CRM system. December 12, 2222. These are internal post items on their CRM that are pulled over for now. Still trying to remove them from the api.
But if we look at the format of the two dates they are Ymd.
--
I went ahead and changed the status of two of the posts showing to Draft, and now only one event is showing. Seems like currently we're only pulling the events with a year of 2222.
As a test I changed another post to have a start year of 2222, and its showing.
But I can see only two events on page. I think events created using date picker is not displaying. That's why this is a mess. Which events should be considered?
I added a new event called Before Event 1 with a start_date of Dec 21. It did not show (as expected). Next I changed the date to Jan 21 and it did show (as expected). Then changed it back to Dec 21, 2016 and once again not showing (as expected).
So new events created appear to be working.
Events that are imported in seem to be having the problem. But to test I'm going to delete all of the imported events and re-import them.
Can you see any difference in the start_date format between and item imported in and one created manually?