Youtube Feeder allows you to embed a live Youtube feed anywhere in your WordPress blog. The feed is always up to date because it pulls directly from Youtube’s data api, but it can also cache the Youtube feed based on configurable settings.
The feed can be:
- User Uploads
- User Favorites
- User Subscriptions
- User Playlist
- Standard Feed
- Category / Tag
The plugin is very flexible because every aspect is configurable. Each video feed can be configured separately, or you can use defaults that take effect site-wide. Each component is given accessible classes for complete customization of the display through CSS.
The “Playlist” style of display was made possible by a jQuery plugin by Dan Drayne. The code is used with permission.
- Retrieves and embeds the newest videos from Youtube video feeds automatically. No more updating pages or fiddling with embed code.
- Displays player, title, date, and description for every video.
- Configurable video size. Can be set site-wide or per video feed.
- Display styles completely customizable with simple tweaks to included CSS file.
- Completely configurable date format.
- Configurable caching of feeds to reduce server load and load time for visitors. Can be handled site-wide or per video feed.
- Can simply list each video or create a player, allowing visitors to click on each video title, loading it dynamically into the single player.
- Configurable number of videos displayed in each feed.
- Dedicated function to get the published date of the most recent video in a feed.
- Dedicated function to get the thumbnail of the most recent video in a feed.
- Your server’s PHP environment must have cURL support or PHP.ini must have allow_url_fopen set to “On”
- The PHP JSON extension
This plugin is released under the GPLv3 license and comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. I make no guarantee this plugin will work for you.
For support, please visit the plugin page
Follow these instructions to install the plugin.
- Unzip the files from the download file
- Upload the entire
youtube-feederfolder to your
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the Youtube Feeder options page and choose your settings
- Put the shortcode [youtubefeeder] in any post or page or embed_youtube_feed() anywhere in your template files.
- Q: Why don’t all videos show up?
A: Youtube restricts some videos from being embedded on public websites. This can be for copyright reasons or settings configured by the uploader. As a result, this plugin will not be able to embed those videos.
If you are the uploader, and you didn’t restrict public embedding on the video yourself, it’s most likely because music in the video is copyrighted or it contains clips of a copyrighted video. You can review Youtube’s fair use policies and submit a counter-notification if you feel your video falls within fair use.
- Q: Why can’t I display more than 50 videos?
A: The Youtube API enforces a limit of 50 results for users’ upload feeds. Unless and until Youtube changes the limit, this plugin will be unable to display more than 50 videos at a time.
- Q: Why is it taking so long for my new videos to show up?
A: First, try clicking the Clear Cache Now button on Youtube Feeder’s settings page to make sure you are getting the most up-to-date information available. If that doesn’t work, it is most likely a delay in the Youtube API.
Youtube’s API is updated periodically throughout the day. As a result, uploaded videos won’t be visible in the feed immediately. The Youtube API reference explains the delay. Here are some key points:
- Uploaded videos will be included in a user’s public uploaded videos feed a few minutes after the upload completes and YouTube finishes processing the video.
- Uploaded videos will usually be available in search feeds within 30 minutes to two hours after the upload completes and YouTube finishes processing the video. However, this delay may be longer under heavy API server loads.
To make sure your video shows up as soon as possible, upload it as public initially. Until the video is included in the Youtube API, this plugin will not be able to display it.
- Q: When will Feature “X” or Release “Y” be ready?
A: I write and maintain this plugin in my free time. I’ve given it to the WordPress community for free because I want to give back to such a great open source project and hopefully help others along the way. I don’t have any deadlines or release dates for this project because it takes a backseat to my full-time job.
If you’re waiting for a specific feature, you can hope I get some free time soon or consider making a donation (using the link under Support). If I receive a donation for a specific feature, I will prioritize that first and get it out as soon as possible.
Contributors & Developers
“Youtube Feeder” is open source software. The following people have contributed to this plugin.Contributors
- Changed urls for embeded videos and thumbnails to be protocol agnostic, ensuring compatibility with secure sites.
- Added ability to embed user playlists.
- Added ability to embed global playlists.
- Added ‘minimal’ style (playlist embedded in a single player).
- Switched embed code to iframe embeds.
- Added all available video playback settings, such as showing related videos, autoplay, style options, etc.
- Added ability to hide video title in simple list format.
- Added Widgets.
- Updated to grab video description from new location in Youtube’s data feed.
- Fixed bug causing manual function calls to always use the default admin settings.
- Fixed order of video feed so that it is now in reverse-chronological order.
- Fixed the “Invalid argument supplied for foreach() on line 103” bug.
- Fixed the API call to only grab videos that are embeddable on public websites.
- Expanded number of possible results up to 50 instead of the default 25. The Youtube API does not honor requests for more than 50.
- Added cURL as alternative to file_get_contents() for grabbing the feed.
- Added the ability to embed the most recent thumbnail from a feed.
- Added the ability to display the video description in “playlist” style and remove it in simple “list” style.
- Changed the default embed style to “playlist”.
- Changed preview to show default youtube user (if available) instead of a static user.
- Fixed bug in get_youtube_published_date() function.
- Changed some of the default CSS classes.
- Changed URL for thumbnails.
- Added ability to view videos fullscreen.
- Fixed a bug with updating cache settings.
- Fixed bug with embed_youtube_feed() and get_youtube_published_date() raising warnings when no argument was supplied.
- Added ability to add thumbnails to “playlist” style.
- Added ability to clear the Youtube Feeder Cache.
- Added message pointing to this page for FAQ and Support to the top of the settings page.
- Changed name of main plugin file from ‘youtube_feed.php’ to ‘youtube-feeder.php’ for consistency.
- Initial release