I have one website in that one post type called course in course post type there is one field called course start date and i want to add one filter in course archieve the filter is of type dropdown and value of dropdown is "Upcoming course" and "Past course" when i select Upcoming course option show only future course date courses and when you select past course it show the course which date is in past. please review my question and reply me how can i implement.
There is a way to do this but it will require some amount of work, as well as it won't work with the AJAX refresh. You will need to Disable AJAX refresh and allow the submit to refresh the page.
From there you can modify the date query per the user's option. It will take some amount of PHP code to achieve but it is possible to do.
The only other alternative is by using a datepicker filter that will allow the user to select a range of dates and they can see the courses that fall within those selected dates.
Please let me know if this helps.
Thanks,
Shane
The topic ‘[Closed] I want custom filter from date’ is closed to new replies.