Post grid order
-
Hi,
I am using the post grid function to display my upcoming events in a grid. While I have set to order the posts by date in ascending order, one event would appear at the back of the sequence of the grid, despite having an earlier date.
Lectures & Events Copy
For some reason the event on 27 October would come last in the sequence, despite it is an earlier event.
Would anybody know what might be causing this? I have checked that the event date has been set correctly.
Thank you very much.
The blog I need help with is: (visible only to logged in users)
-
I actually ran into the same issue when I was setting up a post grid for events. What I found is that most post grid plugins (like The Post Grid, Essential Grid, etc.) don’t automatically read the event date field — they usually order by the publish date or modified date of the post.
That’s why your 27 October event is showing last, even though the event date looks correct. A couple of things you can try:
- Check ordering field – In your grid settings, make sure it’s set to order by “custom field” (if your event plugin stores the event date in a meta field) rather than just “post date.”
- Confirm event plugin meta key – Some event plugins (like The Events Calendar) store dates in fields like
_EventStartDate. You may need to select that meta key in your query. - Update publish date as a test – If you temporarily edit the publish date of the post to match the event date, you’ll see if the grid is only reading publish dates.
- Clear cache – Sometimes the front-end cache holds the wrong order even after fixing the settings.
Once I switched the grid to use the event’s start date meta field, everything lined up correctly.
- The topic ‘Post grid order’ is closed to new replies.