To filter posts by publish date, do the following:
- Edit a map
- Open the widget “List & filter Settings”.
- Click on the menu “Search filter settings”.
- Scroll down to the section “Posts Publish Date Parameters”.
- Select the option “Yes” in the field “Filter posts by publish date”.
- In the field “Display status”, choose whether you want to keep that field opened in the filter on page load or not.
- Scroll down to the section “Posts publish date parameters” and click on the group field “Datepicker parameters”.
- in the field “Title”, enter the title/label to display for that field in the filter.
- In the field “Description”, enter the description that will help users to understand how to use this field to filter posts.
- Choose an option in the field “Filter by”. The option “Exact date” will show posts published in the selected date. The option “After date” will show posts published after the selected date. The option “Before date” will show posts published before the selected date and the option “Between two dates” will show posts published between the selected dates.
- Choose the date format of the datepicker in the field “Date format”.
- In the field “Exclude date attributes” you can remove one or more attributes from the date. For example, to remove the day number from the datepicker, select the option “Day”.
- In the field “Start date” you can specify the minimum date of the datepicker. All dates before the start date will be disabled.
- In the field “End date” you can specify the maximum date of the datepicker. All dates after the end date will be disabled.
- In the field “Start view”, select the start view of the datepicker when loaded. For example, to load the datepicker on years, select the option “Years”.
- Select the week start of the datepicker in the field “Week start”.
- To automatically open the datepicker on page load, select the option “Yes” in the field “Auto show”.
- To append the datepicker in the filter, select the option “Yes” in the field “Inline”.
In the same context
- Activate the search filter
- Display the search filter in left side or the right side of the list
- Show or hide the search filter on page load
- Display the buttons “Filter” & “Rest” on top and/or the bottom of the search filter form
- Change the display order of the fields in the search filter form
- Filter posts based on a keyword
- Filter posts by taxonomies
- Filter posts by custom fields
- Change the text displayed in the button “Filter”