IT Nursery
echo do_shortcode('https://www.youtube.com/watch?v=vZBCTc9zHtI'); Is merely printing https://www.youtube.com/watch?v=vZBCTc9zHtI" out onto the page. I know I can display the video with html with <iframe src="https://www.youtube.com/embed/vZBCTc9zHtI" width="560" height="315" frameborder="0" allowfullscreen></iframe> but I’m trying...
  • June 3, 2022
  • 0 Comments
IT Nursery
I know of 3 ways to embed a YouTube video inside Gutenberg Just pasting the Embed code inside an HTML Block Just pasting the video URL Using the YouTube...
  • May 31, 2022
  • 0 Comments
We followed Brian Fegter’s answer to display YouTube videos using WordPress’ oEmbed feature: // Public video. $video_url="https://www.youtube.com/watch?v=1lODe0i7dNw"; require_once(ABSPATH . 'wp-includes/class-wp-oembed.php'); $oembed = new WP_oEmbed; // Auto-detect the video provider...
  • May 25, 2022
  • 0 Comments