• Resolved Manas Mitra

    (@manas666)


    I’ve created a shortcode for a specific playlist in my YouTube channel. I’ve set to display 12 video thumbnails with pagination on. The page shows 1 of 6 and the first page shows only six thumbnails, second page shows only one thumbnail, where is third page is showing 12 thumbnails. I can’t find out why all the pages doesn’t show 12 thumbnails? Would you kindly check why it’s happening so?

    Best regards.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Kindly go to “YouTube Gallery => Settings” from your WordPress admin dashboard, click on the “Delete Cache” button and check now.

    Hope this solved your issue!

    In case the issue remains, kindly share with us the exact shortcode you use. So, I can get a clue on the issue.

    Thread Starter Manas Mitra

    (@manas666)

    Hi,

    Thanks for your quick reply. I’ve performed the operations as mentioned in your reply but that didn’t solve the issue. You may find that the mentioned link is showing 6 pages of thumbnails. 1st page is showing 6 video thumbnails, 2nd page is showing 1 thumbnail, 3rd page is showing 12 thumbnails, 4th page is showing 9 thumbnails, 5th page is showing 5 thumbnails and 6th page is showing 1 thumbnail.

    I’ve used following shortcode in the mentioned page:

    [automatic_youtube_gallery playlist="PLuKHDwfDqjj8SG0wPz-vr2b-RagIrmHlf" thumb_excerpt="0" pagination_type="pager" player_description="0"]

    Also I should mention that my channel have some private videos in the same playlist that is referred in the shortcode. The particular playlist has 65 videos out of which 31 are marked private.

    I hope above information will provide you some clue.

    Best regards,

    • This reply was modified 3 years, 1 month ago by Manas Mitra.
    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Also I should mention that my channel have some private videos in the same playlist that is referred in the shortcode. The particular playlist has 65 videos out of which 31 are marked private.

    This is the reason for the issue ??

    Note that YouTube API is not 100% FREE. But, it has a daily FREE quota limit that is sufficient for maximum websites if used wisely. So, we always try to reduce the number of API requests in all possible ways. But, per API request, we can only get 50 videos. So, when you add a shortcode we do not get all the videos in a playlist at once. The reason is a playlist can have any number of videos. So, for each page you load, we will only do an API request for the number of videos that you have configured on the “per_page” shortcode attribute. But, if the videos returned are private, we will not display them as they are not playable. Unfortunately, the playlist API in YouTube doesn’t have any option to only get the publicly embeddable videos.

    Solution:

    Kindly use the “per_page” attribute in the shortcode and configure it to “50”.

    Example:

    [automatic_youtube_gallery playlist="PLuKHDwfDqjj8SG0wPz-vr2b-RagIrmHlf" thumb_excerpt="0" pagination_type="pager" player_description="0" per_page="50"]

    Hope this solved your issue!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Improper pagination’ is closed to new replies.