Amp YouTube Fetch video_url

I am following the guide provided by ‘ampproject’

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

Leave a Reply

Your email address will not be published. Required fields are marked *