• Resolved Dana S

    (@dana-s)


    Hello,

    This is an awsome plugin. I was wondering if there was a way to have the related youtube video results only retrieve long videos using youtubes built in “Long (20~ minutes)” filter?

    maybe something like:

    [relatedYouTubeVideos relation=”postTitle” max=”1″ width=”510″ exact=”true” filter=”long”]

    If you dont plan on adding this feature any time soon, is there a simple hack i could adjust the code with myself to get this feature?

    Of course having the said shortcode feature would be ideal, but even a simple hack to retrieve only long videos by default would be fantastic.

    Thanks for this lovely contribution btw!

    https://www.ads-software.com/plugins/related-youtube-videos/

Viewing 1 replies (of 1 total)
  • Plugin Author Chris

    (@zenation)

    Hi Dana,
    you’re right, this is possible! How could I’ve missed that?

    The new parameter introduced in version 1.4.1 now is called ‘duration’ and can be set to ‘short’ (< 4 minutes), ‘medium’ (4 – 20 minutes) and ‘long’ (20+ minutes)

    [relatedYouTubeVideos ... duration="long"]

    At the moment this parameter only works with the shortcode. I’m about to revise the widget backend but it might take me a bit.

Viewing 1 replies (of 1 total)
  • The topic ‘Filter results: Long (20~ minutes)’ is closed to new replies.