- Kindly go to the “Video Gallery => Settings => General (tab) => Single Video Page (submenu)” from your WordPress Admin Dashboard.
- Scroll down to the “Related Videos” section.
- Select “Random” from the “Order By” option.
- Save the changes and check now.
Hope this solved your issue!
Please let me know if still the issue remains.
The issue remains. I have this settings there: Columns – 4; Limit (per page) – 16; Order by – Random; Order – Descending; Show / Hide – Pagination (checked). On first page I see the latest videos added, in descending order, even if I play another video. Same for following pages.
Aah. Sorry, this is a Bug from our last version 🙁
Generally, we will be very careful when making new releases. But, sorry that we are humans too and this happened out of our control. I promise that we will be more careful when making new releases in the future.
Solution:
Edit open the following file,
/wp-content/plugins/all-in-one-video-gallery/public/videos.php
Find the lines below (#316 – #317),
'orderby' => (int) $related_videos_settings['orderby'],
'order' => (int) $related_videos_settings['order'],
Replace them as follows,
'orderby' => sanitize_text_field( $related_videos_settings['orderby'] ),
'order' => sanitize_text_field( $related_videos_settings['order'] ),
Save the changes and check now.
Hope this solved your issue!