Here is a way to not show related videos and have it auto play:
function change_magnific_popup_iframe_setting(){
?>
<script>
jQuery(window).load(function(){
jQuery('a[href*="youtube.com/watch"]').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com',
id: 'v=',
src: '//www.youtube.com/embed/%id%?rel=0&autoplay=1'
}
}
}
});
});
</script>
<?php
}
add_action("wp_footer", "change_magnific_popup_iframe_setting");
source: https://www.kriesi.at/support/topic/youtube-video-not-working-in-ligthbox/#post-288867
You can remove ‘&autoplay=1’ if you do not want it to automatically play the video.
If this solves your issue thanks in advance for marking this thread as ‘Resolved’ so we know your question has been answered and for giving us and our plugin a rating at Maxgalleria Reviews
Alan