• Resolved wordmatej

    (@wordmatej)


    Hi,

    in last column (letter T), I have many rows that have a 0 value. So, I want to hide these rows (where last column is value 0, look T=0).

    Any idea?

    Best regards

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you could check out the TablePress Extension from https://tablepress.org/extensions/row-filter/ and in particular use its filter_inverse Shortcode parameter.

    Regards,
    Tobias

    Thread Starter wordmatej

    (@wordmatej)

    Hello amd tx for quick reply
    Since I am not pprofesional, can you pls help me with shortcode.
    Currently I use/
    [table id=3 responsive=”scroll” /]

    So, when I would activate extension for row filters what would shortcode should be?

    I want for table always to hide rows with last 3 volumn that have 0 values.

    As you can see its for tennis and on table there should be just players that allready have at least 0,5 points. That means for players who dont have points (last column is 0),these rows should be not visible.

    Important: I use also extenaion for sync in 15 mins from Google sheet.So all data from table is coming from Google Sheet.

    Any advice, which shortcode to use?

    Best regards

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    for that, please install and activate that TablePress Extension as a plugin on your site.
    Then (for technical reasons, because the filter term “0” is a bit special), you will need to slightly modify the /wp-content/plugins/tablepress-row-filter/tablepress-row-filter.php file on the server. In that file, please change line 99 from

    if ( empty( $render_options['filter'] ) ) {
    

    to

    if ( '' === $render_options['filter'] ) {
    

    Then, please try this Shortcode:

    [table id=3 responsive="scroll" filter=0 filter_columns=5 filter_inverse=true /]
    

    Regards,
    Tobias

    Thread Starter wordmatej

    (@wordmatej)

    Hi,

    tx a lot, it works :D.

    regards
    Matej

    • This reply was modified 2 years, 9 months ago by wordmatej.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias
    ?
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter wordmatej

    (@wordmatej)

    Tx, I rated with 10.
    Best regards

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks, I really appreciate it ??

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide rows when value is 0’ is closed to new replies.