WordPress.org

Forums

Testimonial Rotator
Only listing 10 testimonials (4 posts)

  1. Rohmel
    Member
    Posted 2 years ago #

    I have run into an issue where the plugin only lists 10 items. I can't find where or figure out why this is happening. There should be more items listed. If I disable enough of the items to bring the total under 10, the plugin lists all of the correct items. When I enable more than 10, random items after 10 stop getting listed.

    Can anyone help with this?

    http://wordpress.org/extend/plugins/testimonial-rotator/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 2 years ago #

    Try adding this to your theme's function.php file:

    function testimonial_rotator_number_of_posts( $args ) {
        $args['number_of_posts'] = 30;
        return $args;
    }
    add_filter( 'testimonial_rotator_display_args', 'testimonial_rotator_number_of_posts' );

    Change the 30 to whatever number you need.

  3. frameitsam
    Member
    Posted 2 years ago #

    I've added the suggested additional code (below) to the end my functions.php but it still only rotates through the first three testimonials. I have a total of 14 testimonials entered. All testimonials have "0" for the order. I have tried numbering them 0-13, but still won't display more than first 3. re: http://www.successfullyunemployed.com

    function testimonial_rotator_number_of_posts( $args ) {
    $args['number_of_posts'] = 14;
    return $args;
    }

  4. Hal Gatewood
    Member
    Plugin Author

    Posted 2 years ago #

    Just to confirm you also added the line underneath the function?

    add_filter( 'testimonial_rotator_display_args', 'testimonial_rotator_number_of_posts' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic