Hello Mark,
For the testimonies widget, there is a small query that pulls those. If you’re curious here’s a copy of it:
if ( ! ( $query = get_transient( 'testimony_posts' ) ) ) {
$args = array(
'post_type' => 'testimony',
'orderby' => 'rand',
'order' => 'asc',
'posts_per_page' => '1',
'no_found_rows' => true
);
set_transient( 'testimony_posts', $query, 600 );
}
$testimony = new WP_Query( $args );
The first check’s to see if this query already has a transient set. We cache the results of this query for 600 seconds.
After that, the query is run. It will randomly select one testimony at a time and display it.
Since you’re hosting with WP Engine, you’ll want to set your site to allow orderby rand in the WP Engine section of your control panel. They disable that by default, but since we’re using a transient to cache the results, it’ll work nicely with their system.
Once that’s set you should have more than one appear as long as more than one is published.
Hope that helps out,
Bill