• There’s something wrong with the search function on my site. Regardless what field I choose in the dropdown and what I type in the search box, the search returns the entire database. I don’t know if I’ve messed something up – I’ve made a few modifications to the pdb-list-default.php template (using a custom template in my child theme), but I can’t see it’s something that should affect this.
    The page only contains the shortcode [pdb_list search=true], and I remember it working earlier, so I don’t know what could have happened.

    Also, I noticed that in the pdb-list-detailed.php template, it says that the text on the search and clear buttons can be changed with this code: $values = array( 'submit' => 'Search Records', 'clear' => 'Clear the Search Parameters' );, but I can’t figure out excactly where to place that code. I’m currently using jQuery to change the text on those buttons, but I’d prefer if I could do it in the template, if you could point out to me where the code goes.

    https://www.ads-software.com/plugins/participants-database/

Viewing 1 replies (of 1 total)
  • Thread Starter Redda_Joppe

    (@redda_joppe)

    OK, found the issue.

    One of the changes I had made to the pdb-list-default.php template was adding this line of code:
    <?php wp_head(); ?>.
    As it turns out I didn’t need it, so after I removed it, the search is working again.

    I’m not marking as resolved yet, as I’m still hoping for an answer as to how I can change the text on the search and clear buttons in the template.

Viewing 1 replies (of 1 total)
  • The topic ‘Search not working – returns entire database’ is closed to new replies.