- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am working on a WordPress theme which I want to add a Custom Fields for YouTube video, and this is what I got:
How do I put a YouTube video with this?
ID, 'youtube', true)) {
$videourl = get_post_meta($post->ID, 'youtube', true);
echo '';
i don’t have experience using custom field. i am sure it is easy to create plugin for this, create shortcode to pass youtube id from editor to plugin, and return value with proper embed code, or in your problem, return a button/link/etc, trigger open lightbox on click.
let me know if you still having problem with this. will spent some time to create it. :D
I use FancyBox
');
$("#various3").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
Thanks mate, this one did the trick: http://iaian7.com/webcode/Mediabox/
The good thing, I place only the web address, and it makes it a playable video lightbox. Very nice.