WordPress.org

Support

Support » Plugins and Hacks » GC Testimonials » [Resolved] add shortcode to allow custom limit # of testimonials per page

[Resolved] add shortcode to allow custom limit # of testimonials per page

  • this applies to [full-testimonials]: please allow for custom setting of this parameter, as we use your full-page testimonials because of the sweet look, but do not want five on our home page. instead, please allow for [full-testimonials limit=”x”] to specify how many testimonials per page.

    for the present, i have updated the php directly (obviously less than ideal) via updating the line in gc-testimonials/testimonials.php from
    $output .= '$("#testimonials_container").quickPager({ pageSize: 5, currentPage: 1, pagerLocation: "after" });';
    to
    $output .= '$("#testimonials_container").quickPager({ pageSize: 1, currentPage: 1, pagerLocation: "after" });';

    look forward to seeing this in a near-future update ~ and other users, please bump if you too would like to see this!

    cheers,
    d@Ve

    http://wordpress.org/extend/plugins/gc-testimonials/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thank you for posting this. It is exactly the code I was looking for, although I want all Testimonials on one page, so I changed it to:

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

    …assuming there shouldn’t be more than 100 testimonials on one page.

    I find that 20 on a page works quite nicely and went with this:

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

    Example of the output here:
    http://hackrepair.com/why-hackrepair-com

    Thanks for the tip!

    Plugin Author devnz

    @eringarscadden

    Im glad you got it sorted!

    This is one of the main requests and will be implemented in a future release.

    oops! I figured out my answer. ignore this.

    thank you for posting this. this is exactly what I was looking for, too 🙂 yes adding this would be a great addition to a great plugin.

    Please help:

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

    does not work for me.

    only want to extend pagination

    I also want to add the “read more” link.

    how can I make this work?

    ok – what happened
    my client just updated their plugin – I went in and updated the php to:

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

    but still a million to a page? how can I fix? thanks!
    http://www.mansfieldanimaler.com/what-our-clients-are-saying/

    well tried it again by editing thru wordpress and not ftp and it worked – looking forward to an update with this enhancement!
    Thanks! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] add shortcode to allow custom limit # of testimonials per page’ is closed to new replies.
Skip to toolbar