I'm looking for a solution to put "Easy date selector" on the Views Date Exposed Filter, something like a drop-down or links with predefined date range:

  • Posts for today

  • Posts for yesterday

  • Posts for last week

  • Posts for last month

  • Custom range

any ideas?

1 Answer 1


A filters set as "Grouped filters" (as opposed to "Single filter", under "Filter type to expose"), lets you provide a predefined list of options.

Views filter type options

With Grouped filters, you can setup your fixed list with date filters that are "offset from the current time". For example:

Example of grouped filters showing relative dates

I'm not sure how you'd accomplish the Custom Range. Perhaps something like the Select (or other) module, or a second filter date filter?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.