Title: Feature Request &#8211; Improved filter date
Last modified: September 25, 2024

---

# Feature Request – Improved filter date

 *  Resolved [pedromfs](https://wordpress.org/support/users/pedromfs/)
 * (@pedromfs)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/)
 * Hi,
   I have specific use case that is not supported with the current implementation
   of dates filtering.
 * I need to display 2 lists of posts for one of my clients:
    - All future posts
    - All posts from the last month
 * The “All posts from the last month” I can easily achieve with this plugin, but
   I can’t seem to be able to achieve the “All future posts” part.
 * The current date filter allows us to use **before**, **after** and **between**
   filters, but all of those are based on a specific date you select on the calendar.
 * How about, alternatively from selecting the date on the calendar, I could also
   select “Today” and that would be a dynamic date always based off the current 
   day.
 * In order to achieve the use case, I actually had a custom version of this plugin
   with this piece of code in the **process_date_range** function:
 *     ```wp-block-code
       case 'in-future':  return array(  'after' => 'today');
       ```
   
 * However, I got a bit tired of adding it after every each plugin update.
 * Let me know if something like this it would be possible, or if you have any other
   idea on how I could solve this “future posts” use case 🙂
 * Thanks and keep up the awesome work!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/#post-18059018)
 * Hello and thanks for using AQL!
 * This is an interesting use case. I’m not sure I understand the why/how of showing
   posts that are posted in the future ( are you a time traveller? 🙂 ) but either
   way it does show the need to be able to set dynamic start and end points for 
   dates.
 * I am working on the best way to integrate this into AQL so leave it with me!
 *  Thread Starter [pedromfs](https://wordpress.org/support/users/pedromfs/)
 * (@pedromfs)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/#post-18059333)
 * Thank you for the reply [@welcher](https://wordpress.org/support/users/welcher/)!
   
   Yes, I’m a traveller from the future. I can tell you that everyone here is using
   AQL!! ^^
 * So, my use case is very straightforward 🙂 My client uses wordpress to display
   an agenda of events, some of them in the future. Instead of going through the
   metakey-way, I’ve decided to ensure future posts are published and use the post
   date as the event date. This was easier from a usability standpoint for the client.
 * Looking forward to hear from you. Thanks again for the amazing work!
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/#post-18103342)
 * I have a pull request ready for this feature. It will be part of the next release.
 *  Thread Starter [pedromfs](https://wordpress.org/support/users/pedromfs/)
 * (@pedromfs)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/#post-18104981)
 * Super! Thank you very much [@welcher](https://wordpress.org/support/users/welcher/)!
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/#post-18181409)
 * This was release today at part of v4.0.0!
 * I’m going to close this thread but let me know if you run into any issues.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Feature Request – Improved filter date’ is closed to new replies.

 * ![](https://ps.w.org/advanced-query-loop/assets/icon-256x256.png?rev=3106826)
 * [Advanced Query Loop](https://wordpress.org/plugins/advanced-query-loop/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-query-loop/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-query-loop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-query-loop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-query-loop/reviews/)

## Tags

 * [dynamic values](https://wordpress.org/support/topic-tag/dynamic-values/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/feature-request-improved-filter-date/#post-18181409)
 * Status: resolved