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
February 20, 2025 at 8:14 am
#52990
Participant
Hi Ernest,
Many thanks indeed for sharing the snippet.
I forgot to to add a detail: the plugin is set up to search through 3 different CPTs (events, products and people, i.e. the authors of our books) and works pretty well by also grouping the results. However, with your snippet activated, I get ‘events’ results only, the ones that feature such ‘start-date’ metafield.
Shall I edit the last part as follows?
'allow_missing' => true
Would that be enough or do I need to add anything else?
Thanks again,
Samuele