Skip to main content

Questions tagged [youtube]

Youtube is a video sharing website. WP enables inclusion of Youtube videos through the oEmbed API. There are also plugins that support video embedding.

Filter by
Sorted by
Tagged with
0 votes
1 answer
12 views

Why isn't my embed_video WYSIWYG field updating when using update_post_meta?

I'm running a program which merges two posts together and each of their meta fields. I have a for loop that gathers each meta field and saves it. All of them work perfectly except for one called '...
DJZEEGLER's user avatar
  • 119
0 votes
0 answers
39 views

add_filter is failing to append &rel=0 to end of YouTube URL in oEmbed

I'm working with a WordPress website owner who wants to only display their own videos in the "Related Videos" at the end of each embedded video. I've used Chrome Inspector to demonstrate ...
user3169905's user avatar
0 votes
0 answers
29 views

Embbeded YouTube video not showing when admin logged in

Video not showing When admin logged in. If Not logged in its shows.
Dinesh Kumar D's user avatar
0 votes
0 answers
24 views

(plesk)After adding 1000 youtube url to my 1000 different wordpress article, my all websites doesnt show yt url as embed

i added 1000 article with 1000 youtube url, i directly pasted youtube url, but after that, including that site, my all sites on my dedicated hosting doesnt show the youtube embed after i paste direct ...
teamzane's user avatar
2 votes
0 answers
181 views

Embedding YouTube Videos at Time of Publish Instead of Time of Schedule (Bare URLS Make Me Sad)

If I'm adding a WP post and paste a URL for a public or unlisted YouTube video, the video appears normally embedded when the post is live (a standard YouTube player that the reader can click on and ...
raindog308's user avatar
1 vote
2 answers
665 views

Avoid embedding YouTube videos and open them in a new window

I'd like to avoid loading as much foreign Javascript and Cookies as possible on a couple sites, and I'd like to know if there's an easy way to avoid the embedding of YouTube videos, and instead, load ...
Andor's user avatar
  • 113
0 votes
0 answers
587 views

Is there a way to find all posts with Youtube video embedded?

Is there a way to search all posts and pages in my WordPress site and find those who have a Youtube video embedded in them? The reason to do that is I want to disable the wp-embed.min.js but before ...
alancc's user avatar
  • 41
0 votes
0 answers
132 views

Thumbnail image doesn't show up in Shortcode output

A 'WordPress Shortcode' is being developed to display 'YouTube Channel Thumbnail' and 'Latest Playlist Thumbnail' when supplied with 'YouTube Channel ID' as follows. [yt_insert channel_id="...
Praveen Dias's user avatar
0 votes
1 answer
1k views

Wordpress block editor embeds not working in theme (single.php)

I am trying to embed 'spotify' and 'youtube' services in the block editor. When added from the admin, they are displayed fine in the block editor, but when the post content is printed from the theme (...
sariDon's user avatar
  • 265
0 votes
0 answers
27 views

WordPress fails to embed video URL on specific theme

My developer created custom theme for WP, and for some reason Wordpress fails to embed video URL on user-end. Everything is fine with Default WP themes, also video is fine on visual mode, but if I ...
David's user avatar
  • 1
0 votes
0 answers
412 views

How to add srcdoc attribute to YouTube oEmbed in Gutenberg oEmbed Block

First of all, let me mention that I have already looked at the following two similar questions: Is it possible to modify the default YouTube embed attributes string? Filter oembeds tags to modify ...
iSaumya's user avatar
  • 934
2 votes
1 answer
486 views

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-...
Mayeenul Islam's user avatar
2 votes
0 answers
178 views

Cannot embed YouTube video

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 Block While method #1 seems to work without ...
Enrique Moreno Tent's user avatar
0 votes
1 answer
2k views

YouTube API 403 error when website restriction set

I am loading the latest videos from a YouTube channel to WordPress, using the YouTube API: function load_feed() { $url = add_query_arg( array( 'part' => 'snippet', ...
AncientRo's user avatar
  • 366
1 vote
0 answers
46 views

How can I grab the video id of youtube?

I tried $videoID = wp_oembed_get( get_post_meta( get_the_ID(), 'video_url', true ) ); but that doesn't seem to do anything. I'm trying to set playlist id as the video id so the video loops itself. ...
needyourhelp's user avatar
0 votes
1 answer
731 views

Modify YouTube Embed Code to fit theme

I'm using a custom bootstrap template and other users will be embedding youtube videos, which I want to be responsive to fit the theme. What can I do to make the normal YouTube embed code, something ...
Mike's user avatar
  • 23
1 vote
0 answers
1k views

YouTube Video autoplay

I am using a YouTube embed on my site. To make it autoplay I have added ?autoplay=1 to the embed too. The code when added to the page/post editor, is showing the video with autoplay. But on the front ...
Jituu's user avatar
  • 31
1 vote
1 answer
62 views

Embed youtube list with sidemenu opened

I'm an editor in a wordpress blog I have embedded an youtube list with this code: [youtube https://www.youtube.com/watch?v=*********&list=**************************] I want that the plalist has ...
asv's user avatar
  • 113
0 votes
0 answers
23 views

youtube full screen on off permater code help for wordpress

I need a help , youtube player not work. whats problem in there?????? when i put here new youtube video id then not showing in here. site link : cintv24 .net my code is /* myYoutubePlaylist ...
abdullahsk's user avatar
0 votes
1 answer
441 views

Can't embed certain youtube videos into theme

I am unable to successfully embed (certain) YouTube URLs into my theme in the back end, with the intention of having viewable video clips on the front end. Not sure if this a WordPress issue or an ...
clg's user avatar
  • 3
0 votes
1 answer
211 views

Block editor: Sandbox iframe shows outdated HTML

Even if users disable the popular Lazy Load for Videos plugin and the frontend correctly resets videos so that videos are no longer lazy-loaded, the Gutenberg block does not get reset. Below ...
kevinweber's user avatar
1 vote
1 answer
171 views

Add latest Youtube videos on main page [closed]

Is there any ways to get latest Youtube videos from my Youtube channel and show theme in a video gallery on Wordpress page?
Mohammed Jacksi's user avatar
0 votes
1 answer
343 views

Wordpress and Youtube problem

I have problem that Youtube videos are not working on my page. I have done several ways to embed YT videos but nothing. I tried to put just link in post and YT video doesn't show on final post. I ...
Ajdin Mujić's user avatar
1 vote
0 answers
3k views

Advanced Custom Fields oEmbed video width and height

I'm using Advanced Custom Fields plugin and i have a oEmbed field in it where i want to display YouTube videos. This is how they look now: http://electives-abroad.org/custom-field-test/ Why do they ...
Draws Ren Gundam's user avatar
1 vote
1 answer
460 views

How to auto embedded youtube with wp_insert_post()

I use this code to add a post to Wordpress: $new_post = array( 'post_title' => $title, 'post_content' => "test https://www.youtube.com/watch?v=4g3e8XwVIYc https://youtu.be/...
comdex's user avatar
  • 117
0 votes
2 answers
907 views

How to make an embeded a Youtube video from custom field text responsive to screen size?

So I've embedded a youtube video using oembed like this : $embed_code = wp_oembed_get(get_field('youtube_video') ); echo $embed_code; But how do i make it respond to screen size? viewing it on a ...
user2395639's user avatar
1 vote
1 answer
350 views

Getting youtube links from post_content not working

I am trying to retrieve youtube links from post_content but it does not work.. function get_yts() { $query_args = array( 's' => 'youtube.com/watch?v=', ); $posts = ...
FrancMo's user avatar
  • 153
0 votes
1 answer
916 views

Youtube iframe embed keeps disappearing from page

I am trying to embed a video on my homepage. I add the embed code from YouTube and paste it into a custom html blog on the gutenberg editor. I click update and check my website and the video is there....
lomomeg's user avatar
0 votes
1 answer
68 views

Get youtube link title in post title

If my post title is https://www.youtube.com/watch?v=PJmMiZH3Q6I I want it to be converted to original video title which is "Ras Cricket - Fyah" Is there a way without API stuff cause it seems hard.
xxx jenssen's user avatar
1 vote
0 answers
1k views

oEmbed not working in WordPress

I am using custom embed URL for embedding a video. Embedding Youtube and Vimeo working really fine. But only this URL is not working. But if I add via iframeit is working. But I need to add this via ...
user2584538's user avatar
0 votes
1 answer
1k views

How to edit embed filter for youtube video to allow responsive full width layout

Im trying to edit the suggested embed filter from wordpress.org to make youtube videos always stay 100% width inside its container div, while keeping the appropriate height dimension as needed. Is ...
Mr.Brown's user avatar
  • 1,025
3 votes
1 answer
277 views

How to link to YouTube videos with thumbnails?

I am brand new to WordPress and find it very confusing. I have a small blog and cannot find a way to easily add a small grid of YouTube thumbnails that link to those videos. I have looked at all ...
Zephyr's user avatar
  • 131
1 vote
2 answers
63 views

Wordpress site in China times out on requests to youtube [closed]

My wordpress site dj.pyromusic.cn is based in China, on a chinese server. Somewhere in the theme, or the site, it is making a request to youtube which is obviously blocked here, causing the load time ...
Spencer Tarring's user avatar
2 votes
0 answers
609 views

Embed YouTube video on category description

I would like to embed a YouTube video on my category description pages. When I pasted the URL or embed code in the editor, I see the video. But on the page itself it just shows the code. Is there a ...
Peter Prevos's user avatar
0 votes
0 answers
360 views

Iframe Youtube video doesn't work

I'm currently developping a custom page (a handmade one) for my Wordpress website. This page is used to check the validity of a token, if the token is still up, some videos are shown on the page ...
Panchoa's user avatar
  • 101
3 votes
2 answers
36k views

How to change thumbnail of embedded Youtube video?

When I embed a Youtube video onto my page, is there a way to change the thumbnail displayed (screenshot)? I do not have admin access to the Youtube video in-question. I would prefer a non-plugin ...
cag8f's user avatar
  • 1,937
0 votes
1 answer
237 views

Add youtube embed to woocommerce variations

How to add youtube embed code/ embed shortcode to woocommerce product variations? When I insert the shortcode [embed] also iframe code youtube and then saving the product variations the codes gone? ...
Lipsum's user avatar
  • 21
0 votes
2 answers
175 views

Extract links inside embed tags in WordPress

I am using the default WordPress embed to embed a couple of videos in the content. I want to extract the video link from [embed]https://www.youtube.com/watch?v=Z9QbYZh1YXY[/embed], can anyone help ...
user avatar
0 votes
1 answer
545 views

Wordpress Mediaelement - Youtube Videos Embed Options

I have a custom field where I define the Youtube Url as a string. https://www.youtube.com/watch?v=3VqHtEF3LPE This then becomes the src in my theme's shortcode: <?php $ysrc = get_field('...
JoaMika's user avatar
  • 688
0 votes
1 answer
197 views

I'm having a problem viewing the Youtube video

I'm having a problem viewing the Youtube video. In my single-custom I am using: <? Php echo wpautop ($post-> post_content); ?> And when I put the Youtube link he is not showing the video ...
Carlos Stevanato's user avatar
0 votes
1 answer
711 views

YouTube embeded video will not resize (only full screen responsive) [closed]

I am running Headway theme in the latest version of WP. I embed the code below although it ignores the youtube embed size and renders full width on the front end. Code:
user122739's user avatar
1 vote
2 answers
2k views

Remove Title of youtube video

How can i put a youtube video on my post without show the default title from youtube? I tried to put this code in the theme´s functions, but not worked. function remove_youtube_controls($code){ ...
Fernando V. Grossman's user avatar
0 votes
1 answer
45 views

Post editor doesn't save embed media [closed]

I'm facing weird problem - I'm trying to save embed media to post in different computers and it doesn't work in all of them. We do the same process (insert -> media -> embed -> youtube code), and in ...
RonZ's user avatar
  • 101
2 votes
1 answer
726 views

YouTube embed parameters?

According to this: https://codex.wordpress.org/Embeds You can just paste in your YouTube link into your post body and it becomes an embedded YouTube Video. This works for me, but it seems to ignore ...
Jake Wilson's user avatar
1 vote
1 answer
676 views

Embed Youtube video link in wordpress editor

I have a problem embedding Youtube videos link on my website.The problem is that my website works fine when i post with admin user .. but posting a video with an editor user not working . I copy the ...
No signal 's user avatar
0 votes
1 answer
36 views

Custom YouTube Plugin loading different PHP library on live site and localhost

It's come to my attention that the original question was a little unclear. I'm working on a custom-built YouTube plugin for WordPress which has passed all the tests on my local installation, but as ...
Mike's user avatar
  • 244
4 votes
2 answers
9k views

Preventing YouTube embeds loading multiple instances of player JS?

I have noticed on many WordPress sites I work on that when there is more than one YouTube video embedded, multiple instances of the player JS will be called. Since it's a full megabyte of data, I am ...
omega33's user avatar
  • 364
0 votes
1 answer
273 views

Why is my get_post_meta not properly calling the custom field when attempting to embed a YouTube video?

I have added a custom field to 2 posts in order for a non-developer to be able to post a video link from YouTube, and put the embed id in a custom field to be called by the code below. But when I ...
Weber's user avatar
  • 5
1 vote
4 answers
5k views

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 ...
Jacksonkr's user avatar
  • 357
1 vote
2 answers
3k views

How to apply an ID to Shortcode Embedded iframe

I want to add an id="myid" to shortcode embedded iframe:- $video_url = get_post_meta($post_id, 'video_url',true); //or $video_url .= 'video url'; $check_embeds=$GLOBALS['wp_embed']->run_shortcode( ...
Krishna Karki's user avatar