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

    (@tobiasbg)

    Hi,

    thanks for your question!

    That’s easy 🙂 You are using the wrong parameter. It’s “hide_rows” and not “show_rows” 🙂

    So, just change your code to

    <?php echo do_shortcode('[table id=1 hide_rows="1,2,3,4,5,6,7,8,9,10,11" hide_columns="2,5,6,7,8,9,10,11,12,13,14" /]'); ?>

    If you want to, you can then make it more readable, by grouping the ranges:

    <?php echo do_shortcode('[table id=1 hide_rows="1-11" hide_columns="2,5-14" /]'); ?>

    And if you then want to, you can even make it more readable, by using the Template Tag function:

    <?php tablepress_print_table( array(
    	'id' => '1',
    	'hide_rows' => '1-11',
    	'hide_columns' => '2,5-14'
    ) ); ?>

    Regards,
    Tobias

    Thread Starter Rocket1j

    (@rocket1j)

    Thanks … was also using the old WP Tables Reloaded parameter:
    row_count=11
    to display the first 11 rows.

    Is there something similar to use with Tablepress?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no, the “row_count” parameter is no longer available.
    But as “hide_rows”/”show_rows” and “hide_columns”/”show_columns” are so powerful, it’s not really necessary anyway.

    Regards,
    Tobias

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

The topic ‘Hiding Rows’ is closed to new replies.