Problem:
How to display 3 random images from the media gallery?
Solution:
Create a View which queries the media post type with a limit of 3 and random order, as shown in the screenshot in the reply below: https://toolset.com/forums/topic/using-views-to-create-randomized-image-galleries-from-the-media-bin/#post-624240
An oddity of the media post type is that it is not necessary to include anything in the Loop Output section, the images will be added automatically by WordPress.
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+01:00)
This topic contains 2 replies, has 2 voices.
Last updated by Stephen 6 years, 1 month ago.
Assisted by: Nigel.