Conversation
supportHi all, is there any possibility to show the youtube videos in random order? My customer has a Youtube playlist with over 40 videos and wants to show a random selection of 6 videos on his website. I can’t find a plugin doing this in a free version. thanks a lot in advance! Sylva The page I need help with: [ log in to see the link]
Technically, we use the YouTube Data API to fetch videos from YouTube. Unfortunately, the YouTube Data API doesn’t provide an option to retrieve videos in a specific order. This could be possible if the imported videos were stored in a local database. However, our “Automatic YouTube Gallery” plugin is a real-time solution — it does not permanently store the API results. Instead, it only caches the results temporarily. So, we’re sorry to inform you that custom ordering is not currently possible with the “Automatic YouTube Gallery” plugin. That said, we may consider adding this functionality in the future. As an alternative, we recommend using our other plugin: All-in-One Video Gallery Unlike the “Automatic YouTube Gallery” , the “All-in-One Video Gallery” plugin stores the API results in your WordPress database as individual Video Posts. The architecture and functionality of both plugins are completely different. You can follow these tutorials to get started: Getting Started with All-in-One Video Gallery Auto-Import YouTube Videos Displaying a Video Gallery Here are the steps to display videos in a specific order: Create a category under Video Gallery > Video Categories that corresponds to your YouTube source. Set up an automation and assign the above category in the import form so that imported videos are grouped accordingly. Use the shortcode below to display the videos in a post or page with a specific order: [aiovg_videos orderby="rand" category="YOUR_CATEGORY_ID"] Make sure to replace YOUR_CATEGORY_ID with the actual ID of the video category, which you can find under Video Gallery > Video Categories . You can repeat steps 1–3 to create multiple galleries as needed. We hope this helps! If you run into any issues or need further assistance, feel free to reach out.
Thanks a million for the explanation and the plugin tip! I felt like I had already searched half the Internet for a solution. You saved me so much time – AIOV-Gallery does exactly what I was looking for – great job :)!
Technically, we use the YouTube Data API to fetch videos from YouTube. Unfortunately, the YouTube Data API doesn’t provide an option to retrieve videos in a specific order. This could be possible if the imported videos were stored in a local database. However, our “Automatic YouTube Gallery” plugin is a real-time solution — it does not permanently store the API results. Instead, it only caches the results temporarily. So, we’re sorry to inform you that custom ordering is not currently possible with the “Automatic YouTube Gallery” plugin. That said, we may consider adding this functionality in the future. As an alternative, we recommend using our other plugin: All-in-One Video Gallery Unlike the “Automatic YouTube Gallery” , the “All-in-One Video Gallery” plugin stores the API results in your WordPress database as individual Video Posts. The architecture and functionality of both plugins are completely different. You can follow these tutorials to get started: Getting Started with All-in-One Video Gallery Auto-Import YouTube Videos Displaying a Video Gallery Here are the steps to display videos in a specific order: Create a category under Video Gallery > Video Categories that corresponds to your YouTube source. Set up an automation and assign the above category in the import form so that imported videos are grouped accordingly. Use the shortcode below to display the videos in a post or page with a specific order: [aiovg_videos orderby="rand" category="YOUR_CATEGORY_ID"] Make sure to replace YOUR_CATEGORY_ID with the actual ID of the video category, which you can find under Video Gallery > Video Categories . You can repeat steps 1–3 to create multiple galleries as needed. We hope this helps! If you run into any issues or need further assistance, feel free to reach out.
Thanks a million for the explanation and the plugin tip! I felt like I had already searched half the Internet for a solution. You saved me so much time – AIOV-Gallery does exactly what I was looking for – great job :)!