![](https://secure.gravatar.com/avatar/71cb149e6049f05082f5c564b5254e1d?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Add Youtube address to wordpress shortcode
Hello,
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.
Cheers,
D