BACK TO DIRECTORY

YouTube metabox

by CongBom

5.0
(1 ratings)

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

YouTube metabox in WP 3.7

YouTube metabox in WP 3.7

YouTube metabox in WP 3.8

YouTube metabox in WP 3.8

Plugin Details

Active Installs
10
Total Downloads
2,681
Version
1.0.1
Requires WP
2.5
Requires PHP
Tested Up To
3.7.41
Added
2013-12-18
Last Updated
2017-01-17 2:27am GMT

Ratings

5
1
4
0
3
0
2
0
1
0