Support » Plugins and Hacks » Format page numbers so all aren't shown at once

Format page numbers so all aren't shown at once

Viewing 7 replies - 1 through 7 (of 7 total)
  • Update: I also looked at this code to try and increase the amount of testimonials per page (to try and help the number of pages) but for some reason, when I saved to 15 per page, it didn’t work, stayed at 5.


    Well got it to work – used
    $output .= ‘$(“#testimonials_container”).quickPager({ pageSize: 50, currentPage: 1, pagerLocation: “after” });’;

    but would rather not have to put so many on a page. Would still like it to look more like
    <1 2 3 4 5 > where you can click the arrows ( “<” or “>” ) to got to more pages. I don’t want to have to have 50 or more testimonials on a page to keep the page numbers down.

    Not using so many testimonials is not an option – my client wants to use all of them.

    Hello…..can anyone please help?

    Hi, it’s a shame that nobody came back to you as I also have a large numbe of testimonials and want to show them all – so chevrons for “Previous” and “Next” would be great.

    I vary the number per page to avoid too many pages.

    So, whilst I can’t help you, I like the way that you formatted the numbers so that every page except the current page is underlined. ON my site, all numbers look identical and it could be confusing.

    How was that achieved (please)??




    well my client just update their plugin and now the same problem i fixed (using these instructions: http://wordpress.org/support/topic/add-shortcode-to-allow-custom-limit-of-testimonials-per-page-1?replies=5 ) but no changes – any help anyone?
    thank you!



    well this worked if I edit from wordpress and not via ftp for some reason:

    You go to the Plugins and the click Edit next to this plugin. That takes you to the PHP. Find this code:

    $output .= ‘$(“#testimonials_container”).quickPager({ pageSize: 50, currentPage: 1, pagerLocation: “after” });’;

    A little late but I ran across a solution while looking for something else.

    For Next/Prev bookends:

    1. Add this to your theme’s functions.php:

    // Add [Prev] and [Next] links to GCT pagination.
    function add_my_pager() {
      wp_enqueue_script( 'my-pager-script', get_stylesheet_directory_uri() . '/mypager.js', array( 'gct-pager' ) );
    add_action( 'wp_footer', 'add_my_pager' );

    2. Create a new file in your theme directory called mypager.js. Add this code:

    jQuery(document).ready(function($) {
      // create [Next] link
      var nextLink = '<li><a id="nextLink" href="#">Next</a></li>';
      // create [Prev] link
      var prevLink = '<li><a id="prevLink" href="#">Prev</a></li>';
      // add new links to the page
      // [Next] click handler
      $("#nextLink").click(function(e) {
      // [Prev] click handler
      $("#prevLink").click(function(e) {
      // Scroll to top for any click
      $(".simplePagerNav li a").click(function(){
        $("html, body").animate({ scrollTop: "0px" }, 800);

    You can call it whatever you like as long as it matches the filename in that wp_enqueue_script above.

    And no changes to the plugin code!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Format page numbers so all aren't shown at once’ is closed to new replies.