Skip Navigation

[Resolved] Views slider random order not working

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1135451

I am trying to: displays an automated slider of 12 testimonial posts, in a random order, as seen near the bottom of this page hidden link

I expected to see: a random post order when I refresh the page
Instead, I got: the same order every time I refresh the page

These testimonials are to be displayed across the site, so I don't want every page to start with the same testimonial

#1135918

Hi,

First, it is not recommended to use random order in a view with pagination, you should be able to see the warning message in section "Pagination and Sliders Settings":

Pagination combined with random ordering can lead to same items appearing in more than one pages. It's recommended not to combine pagination with random ordering, unless unexpected results are acceptable.

Second, for the problem "I don't want every page to start with the same testimonial", I suggest you disable the Views cache, for example:
You can add attribute cached="false" in view's shortcode [wpv-view], for example:

[wpv-view name="MY-VIEW-SLUG" cached="off"]

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-view
cached (opt):
off
Turns off the caching system for the View.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.