Plugin Author
Franky
(@liedekef)
Searching for custom fields indeed has a bug, this changeset fixes it:
https://plugins.trac.ww.wp.xz.cn/changeset/2548291/
For full-text search (currently not possible via the filter form), please make a feature request at https://www.e-dynamics.be/wordpress/forums/
HI Franky, I was just about to ask about this bug as well when I found this post.
Only, since I’m still new to this – how do I implement the changes you made from the changeset?
Tried to upload the events.php to my server which disabled the entire site.
So what am I supposed to do?
Thanks!
-
This reply was modified 4 years, 11 months ago by
kinghill.
Plugin Author
Franky
(@liedekef)
Either apply the changeset manually (never overwrite the complete file because it contains other code changes etc …).
But in this case: the latest released version contains the fix too.
OK, thanks for clarifying and adressing the issue!
Unfortunately, even with the latest release version 2.2.3 I experience a weird filter problem, with exactly ONE event. No matter what custom field I select it never returns the event here. If I filter for categories/locations/custom fields with values from the other events they show up fine. Only with this one event nothing happens.
What does work however is if I select the contact name, the date from the calendar or And if I select the contact name it works
See these screenshots:
https://1drv.ms/u/s!AqyHmqxK9rN_rcQ9UnXwwJn6Z2sUHg?e=Y99gOL
and/or my sample page:
https://now2022.andreasdirscherl.de/eme-event-list/
(never mind the layout/visuals – just a testing page)
VERY strange – I even duplicated the troublesome event and deleted the original, in case there was a database hiccup.
Andy ideas?
PS: What’S also weird, when I first load the page all three events show up fine. If I then apply a filter and then deselect everything to show the entire list again – the one troublesome event (‘Circularity in motion’) does not show anymore.
Plugin Author
Franky
(@liedekef)
Indeed, the issues lies in the default setting of “-1” for contact or author ID when you don’t select it.
This should fix it:
https://plugins.trac.ww.wp.xz.cn/changeset/2550030/
It’S working now – perfect. THANK YOU!
One last thing regarding search form and custom fields:
when I set a Custom Field to Required (which makes sense for me to make sure that people fill these out when creating the events) then it is also a required field when using it on the filter form.
Is it possible to make the filter fields not required? I think when filtering these fields should always be optional, right? Can this be done?
Thanks again for your hard work.
Plugin Author
Franky
(@liedekef)
In that case you should use #REQ_ on those custom fields in your form: then it is required in your rsvp form but not by default. Otherwise people will come with the same question for the filterform later on too (how to make a certain field required there π )