This topic has 7 replies, 2 voices, and was last updated 12 years, 6 months ago by innorun.
Tagged: Removed login credentials
Viewing 8 posts - 1 through 8 (of 8 total)
Hi !
After using testimonial shortcode on the homepage, it shows up all published testimonals and not only testimonials from a selected category.
SHORTCODE
[testimonial cat="feedback" limit="12" title="Customers feedback"]
/framework/shorcode/testimonial.php
Looks that something goes wrong in these lines.
extract(shortcode_atts(array(
'cat' => '',
'limit' =>'5',
'title' =>''
), $atts));
global $post;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = array(
'post_type' => 'testimonialtype',
'posts_per_page' => $limit,
'taxonomy' => 'testimonial_cat',
'paged' => $paged,
'order' => 'DESC'
);
Could it be fixed?
Thanks.
PS: If a website name is not set in the form submission, the testimonal title doesn’t show in front end shortcode too. I fixed this by adding the following code in testimonial.php (line 89).
if( $website_name != '' ){
$out .= '<div class="clientmeta">'.$clientname.$before.$website_name.$after.'</div>';
} else {
$out .= '<div class="clientmeta">'.$clientname.'</div>';
}
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.