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.
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?
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.
That’s perfect – what settings do i use for Demo 1e? I can’t see the instructions for that one?
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.
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.