Including videos into a post has always been copying and pasting some code from the video sharing sites into your page/post. It didn’t work when you posted the code into the Visual Editor from WordPress. You always had to change to the HTML Editor and looking through the code to find the right place where you wanted to insert your video.
Now those days are gone. You can easily add any video by using a shortcode and you don’t even have to change to the HTML editor. You can do it through the Visual Editor which is much easier.
This is the code you can use to insert any video easily:
[embed]VideoURL[/embed]. To change the width you can use:
Video & Lightbox
You also have the ability to include a video into the lightbox and if someone clicks on the video a new pop up window will open and displaying the video. Here’s the code for it:
[video url="VideoURL" title="VideoTitle" img="VideoImage"] title and img are optional.
[video url="http://www.youtube.com/watch?v=cL-ejzlRSsE" title="FLYING SQUIRRELS and the ANGRY ROBOT"]
Or you can use a link instead of an image. The code for that is below:
[video url="VideoURL" linktext="Watch this video" title="VideoTitle"]
[video url="http://www.youtube.com/watch?v=cL-ejzlRSsE" title="FLYING SQUIRRELS and the ANGRY ROBOT" linktext="Watch this video"]