Hi;
I would like to have a video popup when users click on a image. I got part of it but am stuck with the popup knowing that "onclick" and "onmouseover" don't work with PHP, unless I resort to using AJAX, which I am not familiar with.
Here's what I got:
I write an article and embed entire video code <iframe ......></iframe> into a custom field I call 'Video'. I publish the article.
At a separate page I created, I call the code stored in the custom field "Video" like so:
$videos = get_post_meta( get_the_ID(), 'Video', true );
$videos now contains the entire embed video code. Perfect.
Then I display the featured image of the post :
<img src="<?php echo $img; ?>" width="170" height="100" border="2">
(I stored thumb_nail() into $img.)
So far so good.
When I load the page, the images all show up but I can't for the life of me get the corresponding video to open up on the same page when a viewer clicks or hoovers over the image.
Any suggestions?
Thanks
Lode