Add Youtube address to wordpress shortcode
Is there a way to use the youtube address e.g. https://www.youtube.com/watch?v=4LTXZujdhN4 for the mediaid in the wordpress shordcode instead of adding it to the the media player from the dashboard.
The site I'm working on currently the addresses in a custom field which I would like to use instead of manually creating the media id.
I have added this to my page template <?php echo JWP6_Shortcode::the_content_filter('[jwplayer player="1" mediaid="' . $jwplayer_id . '"]'); ?>
But get the message
Error loading player:<br> No playable sources found
Any help would be great.