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(‘’); Is merely printing” out onto the page. I know I can display the video with html with <iframe src=”” 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(‘’); ?> … Read more

Failed to execute ‘postMessage’ on ‘DOMWindow’: !== http://localhost:9000

This is the error message that I get: Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘’) does not match the recipient window’s origin (‘http://localhost:9000′). I’ve seen other similar problems where the target origin is and the recipient origin is, but none like mine where the target is 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: 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=””; 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