• Resolved sarahjul

    (@sarahjul)


    I’ve installed a slider using the view feature with 3 testimonials. The pagination box is checked, but not showing. Is there a minimum # of testimonials for it to show up, or another secret I”m not getting? Does the per page# matter perhaps, or is there a minimum # of testimonials needed for it to show? Thank you!

    https://www.ads-software.com/plugins/strong-testimonials/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    Slideshows can only display one at a time so pagination doesn’t work. In the View editor, I need to hide the pagination option in slideshow mode.

    Thread Starter sarahjul

    (@sarahjul)

    Bummer! So is there any way for readers to know that there are more testimonials there, or do i just have to hope they stay long enough for the next one to come into view? Arrows? Buttons?

    Plugin Contributor Chris Dillon

    (@cdillon27)

    I do have a custom shortcode you can add to your theme’s functions.php if you want to display the total testimonial count.

    I plan to add slideshow controls like many image sliders have but I’m not sure when.

    You could try pagination with one per page like this demo. That would give your readers time to read each one.

    Thread Starter sarahjul

    (@sarahjul)

    That’s perfect – what settings do i use for Demo 1e? I can’t see the instructions for that one?

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Mode: Display
    Order: Newest first (optional)
    I added Date to the Custom Fields with Format “M j, Y”
    Pagination: 1 per page
    Read more: to the full page (demo 1a)

    Demo 1f is similar except it shows 2 per page in a 2 column grid.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    And if you want the testimonial count, add this to your theme’s functions.php:

    function my_testimonial_count( $atts, $content = null ) {
    	extract( shortcode_atts(
    		array(
    			'category' => '',
    		),
    		$atts
    	) );
    	$args = array(
    		'posts_per_page'   => -1,
    		'post_type'        => 'wpm-testimonial',
    		'post_status'      => 'publish',
    		'wpm-testimonial-category' => $category,
    		'suppress_filters' => true
    	);
    	$posts_array = get_posts( $args );
    	return count( $posts_array );
    }
    add_shortcode( 'my_testimonial_count', 'my_testimonial_count' );

    and use it like

    <h3>Our [my_testimonial_count] Testimonials</h3>

    I will add this shortcode to the plugin soon.

    Thread Starter sarahjul

    (@sarahjul)

    It worked! THANK YOU.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    My pleasure!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Pagination for slideshow’ is closed to new replies.