GC Testimonials
Format page numbers so all aren't shown at once (8 posts)

  1. bluetaildesigns
    Posted 3 years ago #

    Hello! I have another question..
    Is it possible to have the page numbers at the bottom of the testimonials page (Example: 1 2 3 4 5 6 7 8 9 10 11 12 .......) Use the format of < 1 2 3 4 5 6 7 8 9 10 > instead? Can you please give me the code to fix this?

    My client is loading all of their testimonials and is now up to 40+ pages and will probably have 80 or more. This looks a little silly http://www.mansfieldanimaler.com/what-our-clients-are-saying/

    Thank you!


  2. bluetaildesigns
    Posted 3 years ago #

    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.


  3. bluetaildesigns
    Posted 3 years ago #

    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.

  4. bluetaildesigns
    Posted 3 years ago #

    Hello.....can anyone please help?

  5. Jan Rymarz
    Posted 2 years ago #

    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)??


  6. bluetaildesigns
    Posted 2 years ago #

    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!

  7. bluetaildesigns
    Posted 2 years ago #

    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" });';

  8. Chris Dillon
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GC Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic