WordPress.org

Ready to get started?Download WordPress

Forums

GC Testimonials
[resolved] add shortcode to allow custom limit # of testimonials per page (9 posts)

  1. wordkoop
    Member
    Posted 1 year ago #

    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/

  2. katyjoyalice
    Member
    Posted 1 year ago #

    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.

  3. The Hack Repair Guy
    Member
    Posted 1 year ago #

    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!

  4. devnz
    Member
    Plugin Author

    Posted 1 year ago #

    Im glad you got it sorted!

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

  5. katyjoyalice
    Member
    Posted 1 year ago #

    oops! I figured out my answer. ignore this.

  6. bansay
    Member
    Posted 1 year ago #

    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.

  7. anmaree.annarbortees
    Member
    Posted 1 year ago #

    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?

  8. bluetaildesigns
    Member
    Posted 11 months ago #

    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/

  9. bluetaildesigns
    Member
    Posted 11 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.