?
Solved

testimonails shortcode

Posted on 2013-11-05
2
Medium Priority
?
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

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…
This article discusses four methods for overlaying images in a container on a web page
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 purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

765 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