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

#52990
samuelepellizzarisamuelepellizzari
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