For those who thought I had died, you can now breathe that sigh of relief you've been holding in for over a year.
I have some big news for you: Thanks to a very generous donation from a user, I will soon be releasing a major update to Youtube Feeder.
This update will include the #1 most requested feature from users: Playlist Support; as well as many other features.
There are so many features coming in this update that I had to completely change the roadmap of upcoming versions and features, which is where you should look for a full list of what's coming in this next release: 2.0.
I don't have a release date yet, but you can expect to see it drop within the next couple of weeks.
Inspired by my most recent post about embedding a Youtube feed with a shortcode, some features I wanted to add to it, and a certain amount of interest in expanding it, I have written my second WordPress plugin.
It's interesting that today is almost exactly 1 year from the date I released my first wordpress plugin (which I'll hopefully be updating soon).
Here's what the plugin does:
Youtube Feeder allows you to embed a dynamic Youtube video 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 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 highly accessible classes for complete customization of the display through CSS.
UPDATE: Looking for more functionality and an easier installation method?
Check out my WordPress plugin: Youtube Feeder
It's based on this code and has a LOT more features
WordPress shortcodes are great. They let you perform complex operations or display dynamic content with just a tiny bit of text in any page or post.
I recently needed a way to embed the most recent videos from a Youtube channel (very dynamic information) in a WordPress page, so I decided to write a shortcode for it.
The code is actually pretty simple. Just add the following to your theme's functions.php file:
'user' => 'flamadiddle86', // youtube user
'limit' => 5, // maximum number of videos
'height' => 385, // video height
'width' => 480 // video width
$data = @json_decode(file_get_contents('http://gdata.youtube.com/feeds/api/users/'.$user.'/uploads?alt=json'), TRUE);
$counter = 0;
$content = '<div class="youtubefeed">';
foreach($data['feed']['entry'] as $vid)
$url = $vid['media$group']['media$content']['url'];
$title = $vid['title']['$t'];
$ycontent = $vid['content']['$t'];
$content.= '<object width="'.$width.'" height="'.$height.'">'.
'<param name="movie" value="'.$url.'"/>'.
'<param name="allowFullScreen" value="true"/>'.
'<param name="allowscriptaccess" value="always"/>'.
'<embed src="'.$url.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$width.'" height="'.$height.'"/></object>'.
if($counter == $limit)
$content .= '</div>';
And it couldn't be easier to use. The videos you see below were embedded simply by putting this code in the post:
Categories: Programming, Web Development Channel, Feed, PHP, Programming, Shortcode, Stream, Video, Web Development, WordPress, Youtube