Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

YouTube metabox

Create YouTube meta-box for post with live preview

To get meta value in front-end, use get_post_meta() with meta key is youtube_id.

Example:

Print YouTube video ID:

<?php echo get_post_meta($post->ID, 'youtube_id', true);?>

Thumbnails:

<img src="http://img.youtube.com/vi/<?php echo get_post_meta($post->ID, 'youtube_id', true);?>/mqdefault.jpg" alt="" />

Video player:

<iframe src="http://www.youtube.com/embed/<?php echo get_post_meta($post->ID, 'youtube_id', true); ?>" width="588" height="331" frameborder="0" allowfullscreen></iframe>
Author Cong Bom
Profile
Contributors congbom
Tags metabox, video, youtube
  1. youtube-metabox screenshot 1

    YouTube metabox in WP 3.7

  2. youtube-metabox screenshot 2

    YouTube metabox in WP 3.8

  1. Upload youtube-metabox to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
Share  
Download
Version 1.0.1

Requires WordPress version: 2.5 or higher

Compatible up to: 3.8.18

Last Updated 17 Jan 2017

Date Added: 18 Dec 2013

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

5 stars
1 ratings
742 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0