WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Filtering (5 posts)

  1. isleepinabucket
    Member
    Posted 1 year ago #

    Hi Tobias

    I am unable to get my table to filter more then one word... for example if i use the following code:
    [table id=1 filter="word1" /] the filter will work

    However if i use the code:
    [table id=1 filter="word1&&word2" /] the table will not appear at all.

    Both words do exist in the table but they are in different columns if that makes any difference.

    Is this a limitation of the plugin?

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post.

    Remember that the Filtering Extension only performs "exact cell matching" by default. Thus, filtering for "word1&&word2" would require two columns in a row, one with the exact content "word1" and one with the exact content "word2".

    Now, I have extended the Filtering Extension with other parameters, a while ago. You can download the latest version at https://github.com/downloads/TobiasBg/TablePress-Extensions/tablepress-row-filter.zip
    This will one perform "word contained matching", so that your filtering should return results.

    If that does not help, please post a link to the full/unfiltered table, and post the exact Shortcode you are using for filtering.

    Regards,
    Tobias

  3. isleepinabucket
    Member
    Posted 1 year ago #

    Hi Tobias

    Thanks for your response.

    I just figured out what I was doing wrong. I was entering the filter on the visual editor instead of the TEXT editor on my wordpress.

  4. isleepinabucket
    Member
    Posted 1 year ago #

    Sorry to bother again but is there a way to filter the table by checking just one column in the row instead of the entire row?

  5. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    ah yes, then the Visual editor likely messed with the Shortcode.

    Filtering for just one column is possible with the new version of the Extension. Just specify the columns that shall be searched by adding the parameter

    filter_columns="3-6"

    or

    filter_columns="1,3-5,7"

    and change the numbers of the columns accordingly.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags