Add Featured Videos to your posts and pages. Works like magic with most themes which use Featured Images. Local Media, YouTube, Vimeo, Dailymotion.
A picture is worth a thousand words. How many words is a video worth?
This plugin enables you to define Featured Videos, which can automatically be displayed instead of Featured Images. There are three ways to get the videos onto your page:
- If your theme already makes use of Featured Images, these will in most themes automatically be replaced by your Featured Videos if available. Alternatively you can
- insert the
[featured-video-plus]
-Shortcode in your posts or - manually make use of the PHP functions in your theme's source files.
Instead of option 1 the plugin can also request the videos using an AJAX request when the Featured Image is clicked. This reduces load times and gives you the flexibility to display videos in a lightbox to ensure your theme does not break.
See the theme in action on yrnxt.com. Also take a look at the Garvan video blogging theme which makes optimal use of this plugin.
Beside your Local Videos (WordPress 3.6+ required) you can use videos from YouTube, Vimeo and Dailymotion. If you miss a certain video platform: Leave me a note. For YouTube and Dailymotion the plugin also features time-links.
The plugin adds customization options to your Media Settings. Beside aesthetic individualizations for each video platform's player you can turn off automatic featured image replacement, turn on autoplay, define your Dailymotion Syndication Key and tweak video sizing. By default videos try to dynamically fit their parent containers width. Take a look at Settings -> Media.
[featured-video-plus]
[featured-video-plus width=300]
the_post_video( $size )
has_post_video( $post_id )
get_the_post_video( $post_id, $size )
get_the_post_video_url( $post_id )
get_the_post_video_image_url( $post_id, $fallback )
get_the_post_video_image( $post_id )
All parameters are optional. If no $post_id
is given the current post's ID will be used. $size
is either a string keyword (thumbnail
, medium
, large
or full
) or a 2-item array representing width and height in pixels, e.g. array(560,320). $fallback by default is false, when set to true this will return the fallback URL for local videos.
- Last update compatible all the way back to WordPress 3.2!
- You can now specify the 'end' parameter for YouTube embeds (*)
- Added option for only displaying videos on single posts/pages (*,*,*)
- Removed hardcoded http protocol for embeds *
- Replaced Video.js with MediaElement.js (ships with WordPress since 3.6 - breaks local videos partially if you use an older WordPress version!)
- Added Spanish translations! Translation by WebHostingHub.com
- Updated FitVids.js to 1.0.3
- Video.js 4.0
- Customize the local video player
- Better autoplay handling
- Remove anchors wrapping videos
- General bug fixes
- Fixed manual usage option (*)
- Added featured image mouse over effect for featured video AJAX usage
- Added functionality to display featured video in an lightbox using AJAX on featured image click (*)
- Added functionality to replace featured image with featured video on demand when image is clicked using AJAX (*)
get_the_post_video_url
has a new second parameter (boolean) to get the fallback video's URL (*)- Tested with WordPress 3.6
- Fixed removing featured image when no featured video is specified (*)
- Added
get_the_post_video_url($post_id)
PHP-Function - Added YouTube
enablejsapi
parameter withplayerapiid
(fvpid + $post_id
) and iframe id (* - Added a filter for
get_the_post_video
:get_the_post_video_filter
(* - Added option for using the featured image as video thumbnail for local videos
- Fixed local videoJS (*)
- Fixed auto width and height for the Dailymotion and videoJS players
- Fixed YouTube videos for which the plugin cannot access the YouTube API (*)
- Fixed Featured Video box on new-post.php
- Enhanced Featured Image ajax behavior
- AJAXified the Featured Video box - just like Featured Images
- Added options for a) disabling VideoJS JS/CSS, b) enabling VideoJS CDN and c) YouTube
wmode
- Plugin no longer breaks WP image editor (*)
- WP 3.5 Media Manager seamless integrated
- Time-links now available for YouTube and Dailymotion (append #t###1m2s)
- New
autoplay
setting - Specify your Dailymotion Syndication Key
- Added
get_the_post_video_image
&get_the_post_video_image_url
- Local videos no longer break when domain changes or attachment is edited
- Better Featured Image handling
- Internationalization: Added German translations
- Added customizations for YouTube and Dailymotion
- Revamped video sizing
- Better error handling
- Contextual help on media settings and post edit screen
- LiveLeak (very experimental, they have no API)
- Local Videos: mp4, webm, ogg
- More dynamic user interface
- Minimized JS and CSS
- Dailymotion
- Fixed YouTube time-links
- Enhanced interaction of Featured Videos & Featured Images
- Release