WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Changing default display page when using pagination (4 posts)

  1. Kath_Brentford
    Member
    Posted 9 months ago #

    I have a table that uses pagination, i.e. it has 200 odd rows and shows them in groups of 10.

    I would like to be able to change the default page of the table when the full page loads, so that it defaults to showing page 4 for example, rather than the top of the table.

    I don't want to change the sort order, just which page you see first.

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    thanks for your question.

    Yes, this should be possible with a custom command for the JS library. Please add this to the "Custom Commands" textfield on the "Edit" screen of the table:

    "iDisplayStart": 30

    That will tell the script to start with the 31st entry (counting starts with 0 internally), which would be the fourth page (when 10 rows are shown per page).

    Regards,
    Tobias

  3. Kath_Brentford
    Member
    Posted 9 months ago #

    Thanks very much, that works perfectly.

  4. TobiasBg
    Member
    Plugin Author

    Posted 9 months ago #

    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!

Reply

You must log in to post.

About this Plugin

About this Topic