Your Time:
Our Time:
← Back to discussions

✓ Testimonials Display Order Asc/Desc

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket
Resolved
Posted in: Hopes

This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago by Fem.

  • 2016-08-08 at 9:47 am
    Support Expired
    #15795
    siblesquen
    Participant
    • Topics: 5
    • Replies: 2
    • Total posts: 7
    • Post count: 2

    I would like to be able to specify which order my testimonials are displayed in the carousel. They start with the most recent and end with the first testimonial I created, which I would like to reverse (without having to recreate them all in backwards order). I tried manually setting the order for each testimonial-post, but there was no change.

    2016-08-08 at 11:10 am
    #15803
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    Add 'order' => 'ASC' in testimonial.php shortcode on line no: 35 as shown below.

    $query = array(
    	    'post_type'	=> 'testimonialtype', 
    	    'showposts'	=> $limit, 
    	    'tax_query' => array(
    	    'relation' => 'OR',
    	),
     
    	'paged'		=> $paged,
    	'order'		=> 'ASC'
    );
    2016-08-24 at 3:23 pm
    #16176
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.