mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
random order, output maximum of 3 testimonials
This commit is contained in:
parent
576b8a025b
commit
9fa4505694
@ -1184,8 +1184,10 @@ class Subtemplate {
|
||||
public function testimonials($subtemplateTitle) {
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'testimonial',
|
||||
'order' => 'ASC'
|
||||
'post_type' => 'testimonial',
|
||||
'order' => 'ASC',
|
||||
'orderby' => 'rand',
|
||||
'posts_per_page' => 3
|
||||
);
|
||||
|
||||
$testimonials = get_posts($args);
|
||||
|
Loading…
Reference in New Issue
Block a user