Solved

testimonails shortcode

Posted on 2013-11-05
2
286 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will learn how to dynamically set the form action using jQuery.

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now