Convenient shortcodes for embedding youtube content (playlists, accounts and videos.) This plugin caches the json responses from Google's API locally to avoid rate-limiting. Displays playlists and accounts in a responsive format, and includes title, user information, description, etc.
Upload plugin-name.php
to the /wp-content/plugins/
directory
Activate the plugin through the 'Plugins' menu in WordPress
*Add the following shortcodes to a post to embed the content.
Note: because the plugin retrieves and caches the json from Youtube, the first load of the plugin may be slow, if there are a lot of items.
[wp_entuberate_id id="NNNNNN" cache="120"] embed a single video.
id = the youtube id (ex:
https://www.youtube.com/watch?v=id)
cache = number of seconds to cache the .json file locally (default is 120 seconds)
[wp_entuberate_account user="NNNNNNNNN" cache="120" thumbsize="0"] show videos from a single account
user = youtube username
cache = number of seconds to cache the .json file locally (default is 120 seconds)
thumbsize = the size of the thumbnail (-1 for no thumbnails, 1 for small, 2 for large)
[wp_entuberate_playlist list=NNNNNNNN" cache="120" thumbsize="0"]
list = list id (ex:
https://www.youtube.com/playlist?list=id)
cache = number of seconds to cache the .json file locally (default is 120 seconds)
thumbsize = the size of the thumbnail (-1 for no thumbnails, 1 for small, 2 for large)