Create YouTube meta-box for post with live preview
Author: | Cong Bom (profile at wordpress.org) |
WordPress version required: | 2.5 |
WordPress version tested: | 3.7.41 |
Plugin version: | 1.0.1 |
Added to WordPress repository: | 18-12-2013 |
Last updated: | 17-01-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | http://congbom.com/youtube-metabox |
Total downloads: | 2 061 |
Active installs: | 10+ |
Click to start download |
To get meta value in front-end, use get_post_meta()
with meta key is youtube_id
.
Example:
Print YouTube video ID:
ID, ‘youtube_id’, true);?>
Thumbnails:
<img src="http://img.youtube.com/vi/ID, ‘youtube_id’, true);?>/mqdefault.jpg” alt=”” />
Video player:
<iframe src="http://www.youtube.com/embed/ID, ‘youtube_id’, true); ?>” width=”588″ height=”331″ frameborder=”0″ allowfullscreen>
Screenshots