Title: Event Ordering &amp; Filtering Issues
Last modified: August 6, 2026

---

# Event Ordering & Filtering Issues

 *  Resolved [mrben10](https://wordpress.org/support/users/mrben10/)
 * (@mrben10)
 * [3 days, 12 hours ago](https://wordpress.org/support/topic/event-ordering-filtering-issues-2/)
 * PROBLEM #1: Events Sorted by Publication Date Instead of Event Date

Viewing 1 replies (of 1 total)

 *  Thread Starter [mrben10](https://wordpress.org/support/users/mrben10/)
 * (@mrben10)
 * [3 days, 12 hours ago](https://wordpress.org/support/topic/event-ordering-filtering-issues-2/#post-18985343)
 * Root Cause:
   The Gutenberg block editor was converting “Order by: Event date” 
   to orderby=’date’. In WordPress, orderby=’date’ sorts by post_date and ignores
   the meta_key parameter. The correct value should be orderby=’meta_value’ with
   meta_key=’event_begin’ (the event start date meta field).
 * Solution (3 parts):
 * class-shortcodes.php – Added ‘orderbykey’ => ‘event_begin’ to shortcode defaults(
   list, timeline, map) to specify which meta field to sort by.
   build/*/block.json–
   Added orderbykey attribute with default ‘event_begin’ to block definitions so
   blocks pass the correct meta field.eventpost.php (line ~1974) – Added PHP converter
   that intercepts orderby=’date’ and converts it to orderby=’meta_value’ with orderbykey
   =’event_begin’.
 * Result: Events now sort by actual event start date, not publication date.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fevent-ordering-filtering-issues-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/event-post/assets/icon.svg?rev=2678301)
 * [Event Post](https://wordpress.org/plugins/event-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-post/)
 * [Active Topics](https://wordpress.org/support/plugin/event-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-post/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [mrben10](https://wordpress.org/support/users/mrben10/)
 * Last activity: [3 days, 12 hours ago](https://wordpress.org/support/topic/event-ordering-filtering-issues-2/#post-18985343)
 * Status: resolved