Tagged: Removed login credentials
Sorry, but you do not have the capability to view this topic
-
- Topics: 1
- Replies: 4
- Total posts: 5
Post count: 16Hi !
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>'; }