I am following the guide provided by ‘ampproject’
https://github.com/ampproject/amphtml/blob/master/extensions/amp-youtube/amp-youtube.md

Is there any way to get the data-videoid to use ‘video_url’ instead of ‘mGENRKrdoGY’.

For example

I am currently using $videoID = get_post_meta($post->ID, 'video_url', true); to fetch the video id from the post.

Any suggestions are well appreciated!

Read more here: Amp YouTube Fetch video_url


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: