Hello, I feel like I am beating my head against a brick wall on this... I am trying to detect if an array is empty in order to display or not display an image with popup containing a youtube embedded video.
I am sure I am doing this completely wrong but I cannot seem to crack it. Any advice would be greatly appreciated!
Code:
<?php if (isset($teamMetas['video_code'])) { echo <a href="#pop_up_<?php echo $team->ID; ?>" class="fancybox-media" rel="media-gallery"><img src="<?php bloginfo('template_url'); ?>/images/play-button.png" width="42px" height="42px"/></a>;}?>
Comment