Problem:
I need to create a view that displays posts from a custom post type (CPT) published between two selected dates. The end-user should be able to select the date range (start and end) using calendar date pickers on the front end.
Solution:
Create a custom field to store the published date of posts. Use the legacy Views interface to create the view, and manually add select boxes for the date range. Then, apply custom code to modify the query and reload the page with filtered results.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 1 reply, has 1 voice.
Last updated by 1 week, 5 days ago.
Assisted by: Christopher Amirian.