Solved

testimonails shortcode

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

Technology Partners: 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!

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

707 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