Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Related Videos for JW Player

=== Related Videos for JW Player ===
Contributors: ghera74, logicimage
Tags: Related posts, related videos, videos, player, JW Player
Requires at least: 3.0
Tested up to: 4.1.2
License: GPL 2

It creates the feed required from "Related Videos" add-on for JW Player, one for each category. 

== Description ==
If you're using JW Player on your site, you probably know Related Videos, a free add-on that allows you to show more contents to the users in a beautifull and simple layout.
Related Videos for JW Player will creates the correct xml for each category, so you'll be able to show related contents dynamically.
Go to Settings/ Related Videos for JW Player menu and set you preferences.
That's the url of your category feed:
http://YOUR-SITE/archives/category/THE-CATEGORY-SLUG/?feed=related-feed
In your JW Player code, you'll have something like that:
'related-1': {
   'file': 'http://YOUR-SITE/archives/category/THE-CATEGORY-SLUG/?feed=related-feed',
   'heading': 'More videos!',
   'onclick': 'link',
   'dimensions': '210x161'
} 
== Installation == From your WordPress dashboard
  • Visit 'Plugins > Add New'
  • Search for 'Related Videos for JW Player' and download it.
  • Activate Related Videos for JW Player from your Plugins page.
  • Once Activated, go to Settings/ Related Videos for JW Player menu and set you preferences.
From WordPress.org
  • Download Related Videos for JW Player
  • Upload the 'related-videos-for-jwplayer' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...)
  • Activate Related Videos for JW Player from your Plugins page.
  • Once Activated, go to Settings/ Related Videos for JW Player menu and set you preferences.
== Frequently Asked Questions == Where can I find informations about Related Videos for JW Player?
Go to http://support.jwplayer.com/customer/portal/articles/1409745-display-related-videos
What Related Videos for JW Player does?
It creates the feed required from "Related Videos" plugin of JWPlayer, one for each category, so you'll be able to show related contents dynamically.
What have I to do after the installation?
First, you have to set how the plugin has to catch the video images of your wordpress posts. Go to Settings/ Related Videos for JW Player menu and set you preferences.
  • Featured image
  • Custom field (specifing the key)
What's the next step?
Add this url to your JW Player code
http://YOUR-SITE/archives/category/THE-CATEGORY-SLUG/?feed=related-feed
== Screenshots == 1. Related Videos for JW Player - option 1 2. Related Videos for JW Player - option 2 3. Related Videos for JW Player - result == Changelog == 1.0 - First release.