Random | WordPress.org

[ad_1]

  1. Kindly go to the “Video Gallery => Settings => General (tab) => Single Video Page (submenu)” from your WordPress Admin Dashboard.
  2. Scroll down to the “Related Videos” section.
  3. Select “Random” from the “Order By” option.
  4. 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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer