• Resolved xucaen

    (@xucaen)


    I am looking at a page that uses the tablepress filter to display data from a tablepress table. I think they had wanted the page to show only those rows where a column was equal to a specific word. However, it seems instead to show all rows where the word appears in all columns. Is there a way to limit the filter to one specific column?

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Are you referring to the TablePress Row Filter Extension here? (You are if the Shortcode on that page uses a filter Shortcode parameter.)

    If that is the case, you can indeed limit the filtering, by adding another parameter:
    filter_columns="1,2"
    (which holds a list of the column numbers that should be taken into account for the filtering).

    Regards,
    Tobias

    Thread Starter xucaen

    (@xucaen)

    I have it like:

    [table id=123 filter=”Testing” filter_columns=”2″ /]

    where column 2 contains only the word “Testing”.

    However, when I view the page, I see all other rows where column 2 is not “Testing”. We do have a plugin called “TablePress Extension: Row Filtering” v1.2. Is that the correct plugin? Are there any other plugins I need to make this work? Are columns zero based or 1 based?

    Thank you for your help.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    that seems correct to me.

    Yes, this is the correct plugin, but you might want to update to version 1.3 from https://tablepress.org/extensions/row-filter/ (you will have to update manually).
    If that’s activated as a plugin, your Shortcode should show a table with only those rows that have “Testing” in their second column (the counting here is 1-based).

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter on specific column?’ is closed to new replies.