Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with query by date field not return proper post after date is updated #1815
In this support forum thread user reports an issue with ordering by a date field. I have confirmed the issue he is describing.
With this code:
The post with the date closest to current date in the date field 'event_date' is return, as expected but if the post with the closest date in its date field is change so it is no longer the closest date, it is still returned.
Oddly enough, the issue is resolved by adding an orderby clause
Issue is present in 2.3.12 but was not in previous versions. User is unsure which version the issue was last not present for.
Someone searching this, might like this alternate syntax that seems to work for me, both in a
I have also have problems sorting and filtering events, here is what i need to do / tried to do:
$query_args = array(