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:
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!
- You must be logged in to reply to this topic.