Support » Plugin: WP-Table Reloaded » [Plugin: WP-Table Reloaded]

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

    (@tobiasbg)

    Hi,

    sorry for the late answer.

    Yes, this should be possible, as the used DataTables JavaScript library has a feature like this.
    You should be able to activate it by adding

    "sPaginationType": "full_numbers"

    to the “Custom Commands” textfields in the “DataTables JavaScript Features” section on the “Edit” screen of your table.

    Regards,
    Tobias

    It works! Thank you!

    Is there a way to use that type of pagination as a standard setting?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great that this is what you wanted 🙂

    With “standard setting”, do you mean that you want this on all tables, without having to explicitely add the code to that textfield?
    Then yes, you can achieve this with a plugin filter hook.
    Please try adding the following code to your theme’s “functions.php”:

    add_filter( 'wp_table_reloaded_js_frontend_parameters', 'wp_table_reloaded_change_pagination_type' );
    function wp_table_reloaded_change_pagination_type( $parameters ) {
        $parameters['pagination_type'] = '"sPaginationType": "full_numbers"';
        return $parameters;
    }

    This will change the pagination from arrows to numbers on all tables, where pagination is enabled.
    (Then also remove the line of code from my first answer again from the “Custom Commands” textfield, to not have it added twice.)

    Regards,
    Tobias

    Thank you so much! It’s working. *yaay* XD

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    very nice! 🙂 Thanks for the confirmation!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP-Table Reloaded]’ is closed to new replies.