-
Author
-
March 17, 2016 at 23:17 #111395the-wireParticipant
Hello,
I am using kleo_testimonials shortcode to display testimonials on a page and I would like them to appear in random order. Would that be possible?
Thanks!
March 18, 2016 at 18:45 #111603LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 30, 2016 at 22:19 #113700RaduModeratorHi,
That is not possible, but you can use Kleo Post visual element from Visual Composer by choosing -> build query -> choose kleo testimonials and order by Random, play with settings of the module.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 30, 2016 at 22:26 #113703the-wireParticipantThe Kleo Post returns the excerpt. Any suggestion on how to get the full testimonial?
Thanks
March 31, 2016 at 17:56 #113848RaduModeratorHi,
Just use the testimonial visual element and add this function to wp-content/themes/kleo-child/functions.php it will show random your testimonials
COPY CODEadd_action( 'pre_get_posts', 'kleo_random_order_testimonials' ); function kleo_random_order_testimonials( $query ) { if(isset($query->query['post_type'])) { if($query->query['post_type'] == 'kleo-testimonials') { $query->set('orderby', 'rand'); } } }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 1, 2016 at 15:18 #114077RaduModeratorYou’re welcome
Have a nice week
I will mark the topic as resolved
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.