Any way to use a custom Parameter for youtube embed without using an iframe?

I do not want to display the titles of videos I embed on my wordpress site. The way I’ve been doing this is using the embed link, inserting the iframe in the wordpress post and adding the custom Parameter “showinfo=0” to the end of the url. This has worked well, until I decided to change … Read more

Why isn’t this youtube shortcode working?

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=”http://www.youtube.com/embed/vZBCTc9zHtI” width=”560″ height=”315″ frameborder=”0″ allowfullscreen></iframe> but I’m trying to leverage wordpress’ built-in methods. How do I do this? 4 Answers 4 I think this is what you are looking for: <?php echo wp_oembed_get(‘https://www.youtube.com/watch?v=vZBCTc9zHtI’); ?> … Read more

Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000

This is the error message that I get: Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘http://localhost:9000′). I’ve seen other similar problems where the target origin is http://www.youtube.com and the recipient origin is https://www.youtube.com, but none like mine where the target is https://www.youtube.com and the … Read more

Embed YouTube video – Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’ [duplicate]

This question already has answers here: Embedding youtube video “Refused to display document because display forbidden by X-Frame-Options” (10 answers) Closed 5 years ago. I am trying to feed my Django page with some resource I am getting from somewhere else. Inside the feed, I have YouTube videos with URL like: https://www.youtube.com/watch?v=A6XUVjK9W4o Once I added … Read more

WordPress 5.3.x YouTube oEmbed is not working

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 with the following $provider = $oembed->discover($video_url); $video = $oembed->fetch($provider, $video_url); echo $video->html; The code worked earlier. But right now it’s not working. We’re using WordPress 5.3.2. … Read more