• Resolved rosemag

    (@rosemag)


    Hi Tobias,

    Would it be possible to start with a Search Bar only?
    When the user keys in the search (with the exact word from a row), then the data will show.

    Example: When the user visits the site it only shows search bar. Then when user key in the exact value or ID number in Column A, all the rows containing the ID number will show. If no value is keyed in, nothing will show.

    Is there a shortcode for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question.

    This could be possible with this TablePress Extension: https://tablepress.org/extensions/datatables-inverted-filter/
    However, using that is a little bit more complicated than for other extensions. First, install and activate it like a regular WordPress plugin. Then, you’ll need to modify the PHP file of the Extension. In line 22, the array needs to be filled with the slugs of all pages that you want to use this function on. The “slug” is the last part of the URL of a page.

    However, this does not directly do exact cell matching.

    Regards,
    Tobias

    Thread Starter rosemag

    (@rosemag)

    Hi Tobias,

    Great this works! Thank you ??

    Is there any way to search for exact match?

    For example, if I search for “1”, only rows with “1” will show.
    It would not show other rows containing 1 such as “11”, “10”, “91”

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I’m not aware of an easy way for that. You’d have to modify the JavaScript code somehow, so that it directly uses the DataTables JS API. Unfortunately, I don’t have experience with that, sorry.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Start with Search Bar Only’ is closed to new replies.