Solved

testimonails shortcode

Posted on 2013-11-05
2
289 Views
Last Modified: 2013-11-05
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
Comment
Question by:sio2y
  • 2
2 Comments
 

Accepted Solution

by:
sio2y earned 0 total points
ID: 39625618
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
 

Author Closing Comment

by:sio2y
ID: 39625620
works like a charm
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question