>
Download This Plugin | |
Download Elegant Themes | |
Name | Featured Video |
Version | 1.5.4 |
Author | Luc Princen (To Wonder) |
Rating | 74 |
Last updated | 2012-07-05 09:23:00 |
Downloads |
12253
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Featured Video plugin added 13 bytes of resources to the Home page and 20 bytes of resources to the sample Post page.
Featured Video plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Featured Video plugin ads no tables to your Wordpress blog database.Featured video allows you to add a YouTube or Vimeo video to one of your posts and get to it using the shortcode [featured-video], next to that you can also embed it right in the code of your theme with the_post_video()!
the_post_video() returns your video standard with a 560x315 resolution. You can pass along the width and height, if you would like to change this, so: the_post_video(600,400) will return the video with a resolution of 600x400.
Next to the width and height you can pass along the window mode (only for youtube) which defaults to transparent. You can also edit the 'allowfullscreen' variable of the iframe. So a featured video with different width, height, windowmode and allowfullscreen would be: the_post_video(600,400,'window','');
There are a few other functions you can use in your theme (all parameters are optional):
has_post_video(post_id) // same as has_post_thumbnail(), returns true or false.
get_the_post_video(post_id, width, height, windowmode, allowfullscreen) // will not echo the video. Has the option to pass a post_id
the_post_video_thumbnail(post_id) // show the video thumbnail
get_the_post_video_thumbnail(post_id) // will not echo the video thumbnail directly.
the_post_video_image(post_id) // get the big version of the thumbnail
get_the_post_video_image(post_id) //will not echo the video image directly
This plugin currently only supports YouTube and Vimeo and works with the url's of single video's.