I have added a custom field to 2 posts in order for a non-developer to be able to post a video link from YouTube, and put the embed id in a custom field to be called by the code below. But when I tried to execute it I get "An error occurred, please try again later." Upon inspection I find that it is trying to call the link as "https://www.youtube.com/embed/Array" instead of filling in the youtubeId.
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/<?php echo get_post_meta(93,'youtubeId');?>" frameborder="0" allowfullscreen></iframe>
There is the code I am trying to run in a <div>
in order to embed a YouTube link dynamically. Basically it is a lot easier for my non-developer content managers to edit a Wordpress post with an updated video than go changing the link in the actual page PHP/HTML.