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, 17 hours ago](https://wordpress.org/support/topic/event-ordering-filtering-issues/)
 * PROBLEM #2: Past Events Filter Displayed All Events (Past + Future)

Viewing 1 replies (of 1 total)

 *  Thread Starter [mrben10](https://wordpress.org/support/users/mrben10/)
 * (@mrben10)
 * [3 days, 17 hours ago](https://wordpress.org/support/topic/event-ordering-filtering-issues/#post-18985345)
 * Root Cause:
   Unchecked HTML checkboxes are not sent in POST data. When “Display
   upcoming events” was unchecked, the future parameter wasn’t in the POST request.
   The AJAX handler then used the block.json default (future=true) instead of treating
   it as false. This resulted in both future=true and past=true, showing all events.
 * Solution:
 * Modified AJAX handlers (ajaxlist & ajaxTimeline in eventpost.php) to convert 
   checkbox state to proper booleans:
 * php
   // Before: ‘future’ => esc_attr(FILTER_INPUT(INPUT_POST, ‘future’)),// After:‘
   future’ => FILTER_INPUT(INPUT_POST, ‘future’) ? true : false,‘past’ => FILTER_INPUT(
   INPUT_POST, ‘past’) ? true : false,
 * Now unchecked checkboxes properly become false instead of defaulting to true.
 * Result: “Display past events” checkbox now correctly shows ONLY past events (
   future=false, past=true).

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%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, 17 hours ago](https://wordpress.org/support/topic/event-ordering-filtering-issues/#post-18985345)
 * Status: resolved