We have installed a plugin to rotate testimonials on a site. It works great in widget areas, on standard pages and in posts. Because of the nature of the site (no posts) we were trying to place it in the area where recent posts are designated.
On the custom_home.php page we renamed “recent posts” to Testimonials, deleted everything between the divs and added our shortcode but nothing.
Here’s the block of code from the custom_home page:
<div class="section_thumbnails group">
<!-- LOOP START -->
<?php $the_query = new WP_Query(array(
'showposts' => 3,
'post__not_in' => get_option("sticky_posts")
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<div class="col span_1_of_3">
<!-- THIS DISPLAYS THE POST THUMBNAIL, The array allows the image to has a custom size but is always kept proportional -->
<li class="post-thumbnail"> <?php the_post_thumbnail( array(70,70) );?>
<!-- THIS DISPLAYS THE POST TITLE AS A LINK TO THE MAIN POST -->
><?php the_title(); ?>
<!-- THIS DISPLAYS THE EXCERPT OF THE POST -->
?php echo get_excerpt(); ?>"> More...
<!-- LOOP FINNISH -->
The site is: http://www.frazeeelectric.net