(MB) YouTube Widget
The YouTube videos widget lets you quickly and easily display your most recent YouTube videos in your blog’s sidebar.
Consider an alternative
(MB) YouTube Widget shows warning signs in 2026 — compare the alternatives below before installing. It runs on 50+ sites, is rated 3.7/5 and was last updated 13 years ago, and scores 28/100 on our health check.
- Small user base (50+ active installs)
- Very few reviews so far
- No update in 13 years
- Only tested up to WordPress 3.6 (latest is 7.1)
Daily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where (MB) YouTube Widget stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| recent videos | >100 |
| social | >100 |
| subscribe | >100 |
| videos | >100 |
| youtube | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 3.7 from 3 reviews
About (MB) YouTube Widget
From the official readme · v1.05Description
The YouTube videos widget lets you quickly and easily display your most recent YouTube videos in your blog’s sidebar.
Features
- The YouTube videos widget is fully-based on the WordPress Plugin API.
- Uses hooks and filters to allow for maximum hackability by theme designers and developers.
- Organized straightforwardly so that it’s easy to modify and style.
Usage
The YouTube videos widget is ready to use as-is, although you can easily customize it to your liking with a bit of code.
You can also insert a plain list of your recent videos into posts and pages with the shortcode mechabyte_youtube. For example, to load 5 videos from freddiew that open in new tabs, you’d use [mechabyte_youtube username="freddiew" videos="5" tab="true"].
Custom Styles
The YouTube videos widget loads it styles by hooking into WordPress’ wp_enqueue_scripts action. To remove the default styling you need to remove the our enqueue_scripts function from the hook.
remove_action( 'wp_enqueue_scripts', array( 'mechabyteYouTube', 'enqueue_scripts' ) );
Custom Output
The end user has two options of displaying their YouTube videos: in plain or decorated lists. When modifying the output of the plugin you must use one of two filters that this plugin uses: mbYT_construct_plain and mbYT_construct_decorated. Before you add your own functions to either filter, you must remove the default ones that are used automatically: mbYT_construct_plain_default and mbYT_construct_decorated_default.
remove_filter( 'mbYT_construct_plain', array( 'mechabyteYouTube', 'mbYT_construct_plain_default'), 10, 3 );
remove_filter( 'mbYT_construct_decorated', array( 'mechabyteYouTube', 'mbYT_construct_decorated_default'), 10, 3 );
Now it’s time to get creative. When creating a function that will loop through the videos you have complete control over how you want to display the content. Just keep in mind that in the end, you should be outputting <li> elements. When filters are being applied to the YouTube content, there are three arguments that are being passed through: $youtube_videos (array, the array of videos), $number (integer, the number of videos the user wishes to display), and $tab (boolean, a true/false value of whether or not the user wants to open video links in a new tab).
Keep in mind that you have access to the following pieces of information when creating your video loop:
$item['title'] // Video title
$item['videoID'] // Video ID
$item['viewCount'] // Video view count
$item['published'] // Video publish date -- UNIX
$item['duration'] // Video duration in hh:mm:ss
$item['numLikes'] // Video likes count
$item['link'] // Video link
$item['image']['default'] // 'Default' thumbnail (low quality)
$item['image']['mqdefault'] // Medium quality thumbnail
$item['image']['hqdefault'] // High quality thumbnail
Here’s an example of some code that adds a custom function to our mb_construct_plain filter (assuming we’ve already removed the default functions). Keep in mind the 3 at the end. That lets WordPress expect our three arguments that will be passed through. Check out WordPress’ add_filter() page for more info.
add_filter( 'mb_construct_plain', 'construct_plain_example', 10, 3 );
function construct_plain_example( $youtube_videos, $number, $tab ) {
$output = '';
foreach( $youtube_videos as $youtube_video ) {
// If we've reached the user's display limit, end the loop
if( $i == $number )
break;
$output .= '<li>';
$output .= '<a href="' . . '"';
// If the user has selected to open videos in a new tab, specify the link target
if($tab) {
$output .= ' target="_blank"';
}
$output .= '>';
$output .= $youtube_video['title'];
$output .= '</a>';
$output .= '</li>';
$i++;
}
return $output;
}
Pretty basic, but it allows you to see a general example of how to loop through the objects and return the modified data.
The above code will produce a list element like this one:
<li><a href="http://www.youtube.com/watch?v=3L-rrkyvApU" target="_blank">Real Life Portal Gun</a></li>
Installation
- Copy the
mb-youtubedirectory into yourwp-content/pluginsdirectory - Navigate to the “Plugins” dashboard page
- Locate the menu item that reads “(MB) YouTube Widget”
- Click on “Activate”
Changelog
1.05 – Updated plugin with mechabyte_youtube shortcode to display videos in posts and pages
1.01 – Updated the video data array to store the date as Unix time
1.0 – Initial release
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
FAQ
(MB) YouTube Widget: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is (MB) YouTube Widget free?
Yes. (MB) YouTube Widget is free to download and use from the official WordPress.org plugin directory.
Is (MB) YouTube Widget safe to use in 2026?
(MB) YouTube Widget shows warning signs in 2026 — compare the alternatives below before installing. It runs on 50+ sites, is rated 3.7/5 and was last updated 13 years ago, and scores 28/100 on our health check.
How many websites use (MB) YouTube Widget?
(MB) YouTube Widget is active on 50+ WordPress websites and has been downloaded 12,853 times since it launched in December 2012. It was downloaded 126 times in the last 30 days.
Does (MB) YouTube Widget work with WordPress 7.1?
(MB) YouTube Widget is officially tested up to WordPress 3.6.1, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was (MB) YouTube Widget last updated?
The latest version, 1.05, was released on August 2, 2013 (13 years ago).
Who makes (MB) YouTube Widget?
(MB) YouTube Widget is developed and maintained by Mechabyte.
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



