Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author xnau webdesign

    (@xnau)

    It still requires you to code your own search function, so even though that is much easier, it is not something that can be done without the technical knowledge.

    Thread Starter Redda_Joppe

    (@redda_joppe)

    Could you possibly point me in the right direction?

    Plugin Author xnau webdesign

    (@xnau)

    I haven’t had time to write up a tutorial or even an example, but if you’re familiar with using WordPress filters, it’s not too difficult.

    Your first task will be the build the HTML for your form, using a custom template, then when the search is submitted you can use one of two filters to alter the query that generates the results.

    The filters are ‘pdb-list_query’ and ‘pdb-list_query_object’ You will only use one of these two.

    The first one gives you the query string before it’s used to generate the list, you place your search data in the query using string manipulation.

    The second one gives you the query as an object, which you can add or delete the search parameters which are present in the object as properties.

    In both cases, I suggest you start by using a filter that sinply shows you what the filter is receiving, that will help you understand what needs to be done in your filter callback function.

    Thread Starter Redda_Joppe

    (@redda_joppe)

    Thanks.
    I’ve given it a try, but I guess I simply don’t have the coding knowledge required to make it work, even though I try hard to learn as much as I can as I go along.

    Do you have an idea on when you might publish some sort of example on how to achieve this?

    However, I have another idea about a workaround for searching multiple fields, but I don’t know if it’s actually possible.

    If I add a hidden field to the form, is is possible to have the content of other fields automatically added to that field? If that is possible, I could simply set up the search function to search the hidden field, which would then contain all of the text from the other (relevant) fields.

    Is that a possible solution? If yes, how can I add content of other fields to a hidden field?

    Plugin Author xnau webdesign

    (@xnau)

    What you’re suggesting won’t work because the form submission won’t be correctly interpreted.

    Thread Starter Redda_Joppe

    (@redda_joppe)

    OK, that’s too bad.
    Is there any kind of ETA on a possible guide or example to set up multiple field searching?

    Plugin Author xnau webdesign

    (@xnau)

    I’m sorry, my current focus with the plugin is finishing the next release, and such an article couldn’t be written until that is done…and I am very busy with client work right now, so several weeks at least.

    Firstly, big thank you for this great plugin!
    I’ amazed of the work you’ve put in to it and the support and guides on your site.
    I’m also interested to get the functionality of multiple filters as seen on the admin side of ‘List Participants’ to be possible also on the front side. I would like to be able to understand your directions written above, but I think I’ll need a tutorial on how to make this into a working template (that part I got working).
    Thanks and i understand if you have other priorities

    Let me add my “thumbs up” to the idea of searching by multiple fields.

    We have many fields (too numerous to all display in the list view) and so it’d be great for users to be able to search all fields in the system. Perhaps a “searchable” option checkbox for each field in the “Manage Database Fields” admin area.

    Plugin Author xnau webdesign

    (@xnau)

    I’m working on it…this project depends on me having spare tine, and I haven’t had much of it lately.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Is it now possible to search multiple fields?’ is closed to new replies.