[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

testimonails shortcode

Hi,

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">
 <h3>Testimonials</h3>
 <!-- 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 -->
 <li class="blog-lists-title">"><?php the_title(); ?>
 <!-- THIS DISPLAYS THE EXCERPT OF THE POST -->
 <li class="blog-lists-title"><?php echo get_excerpt(); ?>"> More...
</div>
 <?php endwhile;?>
 <!-- LOOP FINNISH -->

</div>

The site is: http://www.frazeeelectric.net

thanks.
0
sio2y
Asked:
sio2y
  • 2
1 Solution
 
sio2yAuthor Commented:
Big Thanks to Ossie at template express and Jeff K at hms_testamonials for resolution on this.

<?php echo do_shortcode('[hms_testimonials_rotating]'); ?>
0
 
sio2yAuthor Commented:
works like a charm
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now