Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › filter by date
This topic contains 4 replies, has 2 voices, and was last updated by luguru 7 years ago.
- AuthorPosts
- July 27, 2017 at 8:13 am #13993
Hello, I’m using ajax search pro on an events page. The search engine works without problems but shows me the events that have already happened. I would like to know if there is any way to be able to filter by date so that events that have already passed are not displayed.
A greeting.
July 28, 2017 at 11:11 am #14010Hi!
Thank you for the details, but I’m not able to log-in with the username and the password combination. Can you please check that?
This should be very likely possible by creating a date filter, but it depends on how the start-end date is stored for the events. Some plugins use custom fields with a timestamp, in which case it should be doable – but I will have to take a look at it first.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 28, 2017 at 11:17 am #14013You cannot access this content.July 29, 2017 at 10:24 am #14046Thanks!
I think I have found a possible solution. The custom field ‘_event_end_date’ contains the ending date of an event in a MySQL datetime format. I did create a filter to hide all events that ended before the current date as following: https://i.imgur.com/vgHgTf4.png
Basically anything that has ended, is filtered out.You can even make that filter invisible, by using the custom CSS code, if you want to:
Best,#ajaxsearchprobsettings1_1 form .asp_custom_f:nth-of-type(1) { height: 0px !important; opacity: 0; margin-top: 0 !important; }
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 17, 2017 at 9:25 am #14321Hello! Sorry for taking so long to answer. Thank you very much for the solution, the result is great!
A greeting!
- AuthorPosts
You must be logged in to reply to this topic.