WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
Modify search capability (4 posts)

  1. jacksun
    Member
    Posted 2 years ago #

    Can we expand the search so we can use multiple variables to search by, say first and last names?
    When you have 200 records with the same last name, being able to refilter those by first name before presenting them saves paging through 10 or 20 pages of records for my front end web users.

    Cheers,
    Wayne

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 2 years ago #

    jacksun,

    Yeah, this would be good, and I hadn't anticipated the need for multiple search fields. I do plan to include this functionality in the future, but for now, I'm sorry to say it's not possible.

  3. herbisaacs
    Member
    Posted 1 year ago #

    The multiple search fields capability is critical to my use of the database. Has it been implemented in the 10 months since the last post?

  4. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    The next major release is still in process, and won't be released for at least two months. However, you can "roll your own" search if you're comfortable building it yourself by building your search terms into the shortcode using the WordPress function "do_shortcode" to build a filter string into the shortrcode....something like:

    <?php echo do_shortcode('[pdb_list filter="last_name='.$_GET['last_name'].'&first_name='.$_GET['first_name'].'"]') ?>

    It's not easy, but it can be done.

    The next update won't actually include a multiple field search, it just makes it a lot easier to do and offer more flexibility in the implementation. It will still be a "roll you own" type situation, but I do plan to offer a plugin that will add this functionality to the main plugin. Again, some months off as it is a major overhaul of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic