1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

random order, output maximum of 3 testimonials

This commit is contained in:
Matthias Kretschmann 2016-03-07 21:30:09 +01:00
parent 576b8a025b
commit 9fa4505694

View File

@ -1185,7 +1185,9 @@ class Subtemplate {
$args = array(
'post_type' => 'testimonial',
'order' => 'ASC'
'order' => 'ASC',
'orderby' => 'rand',
'posts_per_page' => 3
);
$testimonials = get_posts($args);