This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Show/hide results based on a datetime metafield

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Show/hide results based on a datetime metafield Reply To: Show/hide results based on a datetime metafield

#52968
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Samuele,

Yes – it is possible two ways – one is a bit of custom code snippet, or if you are not using the search filters, then that is also an option. Search filters are effective even if they are invisible.

Therefore you can create a date filter on that field like so: https://i.imgur.com/rGCSVpw.png
This will filter out results where the “start-date” is before today.