Smart Youtube is a WordPress Video plugin that allows you to easily insert videos/playlists into your post, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
Smart Youtube is one of the most popular WordPress plugins, with more than 1,000,000 downloads.
From version 4.0 Smart Youtube changed the name to Smart Youtube PRO and now also supports playback of Youtube, Vimeo, Metacafe, Liveleak and Facebook high quality videos, works on iPhone&iPad, produces xHTML valid code (unlike YouTube embed code), allows you to view videos in fullscreen, has robust widget support and much more.
The videos will be embedded in your RSS feed as well, and if this is not support by the reader you can choose to have video link and/or video preview screenshot displayed instead.
Main Features
- Easily embeds YouTube, Vimeo, Metacafe, Liveleak and Facebook videos (normal/HD mode)
- Works on iPhone, iPad and iPod
- Embed YouTube playlist (normal/HD)
- Supports latest high quality video protocols (360p and HD quality 720p)
- Allows full YouTube customization (colors, border, size, full screen...)
- Supports video deep linking (starting at desired point with &start=time parameter)
- Supports migrated blogs from WordPress.com
- Supports migration from other Youtube plugins such as wp-youtube
- Extract video thumbnails in your archive/category posts
- Provides a sidebar widget for videos as well
- Produces xHTML valid code
- Very fast and light, no extra scripts needed
Example
You can discuss all plugin related issues in the wordpress plugin forums.
Screenshot
Download
Installation & Usage
- Upload the whole plugin folder to your /wp-content/plugins/ folder.
- Go to the Plugins page and activate the plugin.
- Use the Options page to change RSS feed options
- When you want to display Youtube video in your post, paste the video link with httpv:// (notice the 'v')
Example: httpv://www.youtube.com/watch?v=00000000
0000000 part is your video REF#
The video will be automatically embedded to your post in the proper way.
If you want to post a high/HD (DVD quality, 720p) quality video you would use httpvh:// ('vh' for video high resolution)
To embed a playlist use extension 'vp' (eg. httpvp://www.youtube.com/view_play_list?p=528026B4F7B34094)
To use video deep linking just add &start=time parameter at the end of url. For example httpv://www.youtube.com/watch?v=OWfksMD4PAg&start=30 will start the video 30 seconds in.
Additionally, you can set how do you want the video to be displayed in your RSS feed. Smart Youtube can show the preview image of the video (automatically grabbed from Youtube), the link to the video, or both. I recommend enabling only the preview image.
Vimeo
httpv://vimeo.com/27287078
Metacafe
httpvh://vww.metacafe.com/watch/7815470/harry_potter_and_the_deathly_hallows_dvd_interview/
Liveleak
httpv://www.liveleak.com/view?i=cad_1322822486
Changelog
= 4.0 =
* Major release
* Added support for Vimeo, Metacafe, Liveleak and Facebook videos
* Now parses http:// and httpv:// videos jsut the same
* Option to autoplay only the first video on the page
* Exctract Video thumbnails
* Show video is Colorbox
* New much better, sidebar Widget support
= 3.9.1 =
Support for WiziApp.
= 3.8 =
* Support for new IFRAME embed code
* Support for HD playlists (httpvhp)
* Support for new play formats (1280x745 & 960x745)
v3.5
- Changes to Iphone video embed
Extra
- Visit my other interesting WordPress Plugins.
- Looking for a WordPress Expert ?








991 Comments
Love this plug in!
Question is, where do I make the adjustment to change the size of the embedded YouTube video?
Thanks again!
I am Having a problem with the video playing. It says: Embedding disabled by request Watch on Youtube. Whats up with this.
Thanks for your work, this plugin is really cool !
Can you (or someone) help me use the widget function in my template files ?
This is what I did in my code (that did not work) :
"my YT link with the v added",
"yte_title" => "the title",
"before_widget" => "",
"before_title" => "",
"after_widget" => "",
"after_title" => ""
);
yte_widget($videos);
?>
Of course I miss something for i'm not a php master !!!
Thanks for this! I'll use this one on my site! :)
Currently using this plugin. This is the easiest method to add youtube videos on my website. I've tried every other technique but smart youtube is just clean and easy to work with. Centering is as easy as adding a tag to the text!
Great plugin, unfortunately it doesn't work with IE8.
In my country ( Turkey ) youtube is forbedden . We can access youtube with adding all youtube ip's to the hosts file . In my blog i have a post about that . How can i add a note to my guests and link that to my youtube post just before the video ? Which file and line do i need to edit ?
why is the hd clip so small witht he plug in when its almost a full 1024 browser width in youtube? I see no option to change its size either?
Still not working on IE8, but this plugin is waaaaaaaaay GREAT.
Hello, How do you embed this plugin in the sidebar without using the dynamic sidebar widget?
I'm trying to embed http://www.youtube.com/watch?v=QGamSgt5nF0 in hd . i'm adding
httpvhd://www.youtube.com/watch?v=QGamSgt5nF0 i can make it fullscreen i can see hd button . but its not starting in hd . but when i click hd its okay . it should start with hd isnt it ?
use this instead
httpv://www.youtube.com/watch?v=QGamSgt5nF0&hd=1
apparently comments have to be 7 words long so this is just filler
i trying use your plugin.. its great plugin.. but i have some trouble..
if i you browser IE this plugin worked good.. but if i see with chrome or mozila video cant play. and automatic open new page "nothing found" page. (http://blog.foreverdancecenter.com/%3C!--%20Smart%20Youtube%20--%3E%3Cspan%20class= )
like that.. can anybody helps? thanks a lot..
is it possible to use tis to place more than one video in the sidebar? I can only use the widget once?
thanks for your help.
-john
Hi,
I really like this plugin, but when the controls are used on the embedded video a new windows tab is opened in the browser, showing the original Youtube site.
in this normal?
It works perfectly! Is there any solution to import the comments from that youtube link?
Outstanding! Thank you! Let me know when you get the source code to change the world. I will need a snippet!
Cheers,
FONDA
Fantastic comment :)
nice plugin
is there a way to implement this in templates ?
THANKXX so much...finally easy going posting with you tube vids!!!!
hi
Youtube is denied to access in my country
i have a lot Youtube video placed on my site with Smart Youtube
now i can access to Youtube.com with it's IP Address (64.15.120.233)
how can i use that IP instead of Youtube.com Domain?
this means i need a change in plugins for change the video address in WP pages(not in admin panel and database)
tanks for Smart Youtube
pulled the use of smart youtube on my blog. i'd love to use it again...
Tried using rm_wpautop plugin on Smart YouTube posts, didn't work...two videos and code sticking out...gotta start embedding the code itself...but I'll be looking for a solution here.
Cheers,
Dainis
hmm...turned off xHTML validation and now I get two videos plus the extra code sticking out. Trying to figure somethin' out :-)
rel='nofollow'> sticks out, and then the formatting of certain pages (if there is more text below SmartYoutube) gets messed up. Works fine if I just embed the YouTube code, but I have httpv in over 100 places on my blog.
Any thoughts on a fix? I tried to put the YouTube URL in as "raw" html using the Raw Code Injector. I think this has something to do with autop.
Kinda don't want to go through my whole site and replace all instances of httpv with the whole YouTube code.
Best,
Dainis
For users who migrated to self-host (from WordPress.com to WordPress.org):
If you want the [youtube=*youtube-address*] tags to work with Smart YouTube, I'm writting some lines of code to insert to the Smart YouTube plugin.
On smartyoutube.php, search for the following line:
return $the_content;
Now, add the following BEFORE it:
// to work with migrated blogs from WordPress.com replacing [youtube=youtubeadresss]
if(strpos($the_content, "http")!==FALSE ) {
preg_match_all("/\[youtube\=http:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/)([a-zA-Z0-9\-\_]{11})([^<\s]*)\]/", $the_content, $matches, PREG_SET_ORDER);
foreach($matches as $match) {
$the_content = preg_replace("/\[youtube\=http:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/)([a-zA-Z0-9\-\_]{11})([^\s<]*)\]/", yte_tag($match[3], '', $match[4], $side), $the_content, 1);
}
}
And voilá!
Notice this is a quick mod, and since I'm not a pro PHP coder, I'm not completely shure if this will affect other things... but I guess not.
Also: All [youtube=] tags will be treated as standard non-HD videos.
Another sollution is using something like the Search and Replace plugin (http://wordpress.org/extend/plugins/search-and-replace/) to replace all tags like:
"[youtube=http://" for "httpv://" and "]" for ""
The only problem is that you'll end up with no "]" on your posts, even those that has nothing to do with YouTube tags.
I hope everyone understands what I'm saying...
[]'s
Nice patch, I have included it for v3.3
For some reason the Smart Youtube plugin prevents the TinyMCE Advanced editor plugin from loading properly in the edit-pages.php dashboard page (on all other pages including editing posts, there's no problem). I am not running any other plugins, so I know SY is at fault just by disabling it.