Beschrijving
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>
Installatie
- Upload
youtube-metabox
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“YouTube metabox” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “YouTube metabox” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.