Date Filters
This document explains how to use the Date Filters in the Divi FilterGrid plugin.
To enable date filters, scroll down to the Date Filters section in the Divi FilterGrid module’s Content tab and turn on the Show Date Filters. Once turned on, you can choose between filtering by the post published or modified date and turn on the toggles to show year and month filters.
* Currently the date filters must be manually entered with future plans to auto display the years and months from published posts.
Date Format
In the textarea field for both years and months, enter a comma-separated list of dates. For example, for years you would enter the dates like this:
2024, 2023, 2022
For months, you would enter the dates like this:
January, February, March
For language support, you can also enter the dates in a format that will support your language, mapping the English value required for the query to work properly to the desired display value. The format for this is (English value)|(display value) – separating the two values with the pipe character. For example, for years you would enter the dates like this:
2024|Twenty-twenty Four, 2023|Twenty-twenty Three
For months, you would map the month number to the desired display value and enter the dates like this:
1|Enero, 2|Febrero, 3|Marzo
Custom Date Filters Hook
We have also added a filter hook to allow for more advanced, dynamic output of the date filters. Below is an example: