• Resolved amanfre

    (@amanfre)


    Hi Tobias,

    Need some guidance please. I have the same table which I use over multiple pages.

    On one of those pages I’m trying to remove the pagination from this table without impacting the other page where this table is also.

    Here is the table with the table in question > https://bit.ly/2VOBPG3

    You will see that the table only has 7 rows and based on user refresh it randomly sorts the rows. I wish to keep this as is but I want to remove the pagination as I mentioned, so the table will always show 7 rows at random without any page numbers.

    How can I do this?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you will need to hide the pagination controls with CSS code. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .page-id-844 #tablepress-1_paginate {
      display: none;
    }

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Perfect it works great.

    Also for this same table on the link I provided, how can I fix a selected row or two rows to stay on the top of the table whilst the others sort randomly?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sorry, I don’t know a solution to that ?? You might need to have to modify the Table Row Order Extension for this (if you are using that).

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Sure no problem, maybe im being too ambitious ??

    Just one last enquiry, for this same table, below is the shortcode im using. I want to be able to filter two words, “Live” and “Upcoming”. I tried to various ways and it didnt work for me. Right now I only have Live being filtered.

    [table id=1 row_order=random
    datatables_paginate=true use_datatables=true
    datatables_filter=false
    datatables_sort=false responsive=”scroll” filter=”Live” filter_columns=7,9 /]

    How can I amend to include show both rows that include Live and Upcoming?

    Thanks again

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you can use the || connector:

    filter="Live||Upcoming"
    

    Regards,
    Tobias

    Thread Starter amanfre

    (@amanfre)

    Awesome, it worked. Thanks again.

    Plugin Author TobiasBg

    (@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 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to limit rows shown per table’ is closed to new replies.