• Resolved blodarn

    (@blodarn)


    Hi Tobias !

    I use a table on several page of the website but with different headers and options to filter. On the home page https://www.beyondlifting.org/, I just show the most recent rows (I use the Pagination option of the table to set it to 10) but on the results page, I would like to show the first 50 rows.

    Is there an option to set the number of rows to display in the shortcode like number_rows=15 then I would get the first 15 rows and bypass the Pagination option of the table ?

    Thank you!

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    You could indeed set the pagination to a different value here, by adding the Shortcode parameter

    datatables_paginate_entries=50
    

    to the Shortcode on the Results page.

    If the newest rows are at the beginning of the table (as it seems) you could indeed also only show the first 10 rows. For that, use a Shortcode like

    [table id=1 hide_rows=all show_rows=1-11 /]
    

    (this will internally first hide all rows and show the first 10 data rows plus the header row again).

    Regards,
    Tobias

    Thread Starter blodarn

    (@blodarn)

    Hi Tobias,

    datatables_paginate_entries=50 was exactly what I needed ! Thank you !

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set specific number of rows for a particular view’ is closed to new replies.