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

learn more… | top users | synonyms

12
votes
1answer
8k views

Setting a post's featured image from an embedded YouTube video

If I create a post that has an embedded YouTube video in it (so all I do is paste the YouTube URL into the post and let Wordpress automatically embed it for me), is there a way to have the thumbnail ...
8
votes
4answers
12k views

How do I embed youtube videos with https instead of http in the URL?

I'm running a site that only communicates over SSL/https so if I embed a youtube video using http I will get an error message saying the site is'nt fully secure. Is it possible to rewrite something so ...
6
votes
2answers
3k views

Use [embed] filter in template files

WordPress autmatically embeds a youtube video's if I use: [embed] http://www.youtube.com/watch?v=Xog1T5dUxcw [/embed ] This is great, but it doesn't work if I use it in an template file. I have a ...
5
votes
4answers
11k views

How to Replace YouTube Videos with a “Click to Play” Thumbnail?

I use a lot of embedded videos (via oembed) on my blog, and that can slow down page loads. Is there a way to automatically replace YouTube (and other) videos with a thumbnail (preferably the post's ...
4
votes
3answers
548 views

Modify youtube video size on one page and show another size on different page

I have to display three videos (custom post type) on my first page. When clicking on the link, the post is displayed and video should be in default width. Can you help to find out how to change width ...
4
votes
2answers
592 views

Implementing “Video of the Day” Feature?

I'd like to add a new area on a WordPress 3.0 site that contains a new video from YouTube each day. This video would be manually picked, and manually added each day. I'm not sure how to properly set ...
4
votes
1answer
145 views

Being notified when some YouTube video in some post becomes unavailable

Is there a plugin or some PHP code that notifies you whenever a YouTube videos becomes unavailable in some post of a WordPress website ?
3
votes
3answers
4k views

Do_Shortcode not working for Embed

I'm trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this: <?php echo do_shortcode('[embed]...
3
votes
2answers
1k views

Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer

When you hover over my drop-down menu using IE8 or IE9, the menu div will display behind the YouTube embedment. It works fine on all other browsers. Upon research, I found out that many others have ...
3
votes
1answer
2k views

How add class youtube and type/html to oembed code?

How can i add : class="youtube-player" type="text/html" to iframe like : function Oembed_youtube_no_title($html,$url,$args){ $url_string = parse_url($url, PHP_URL_QUERY); parse_str($...
3
votes
1answer
265 views

How can I clear oEmbed caches for YouTube on posts as they are loaded

I have a site with tons of posts hundreds/thousands of which have YouTube videos embedded. Most use the default [embed]youtube_url[embed] format and the actual embed code is stored in the oEmbed ...
3
votes
2answers
1k views

Add a YouTube or Vimeo video as a post attachment?

I'm developing a gallery plugin and I was wondering if I could add a YouTube and Vimeo "embed" option to the media uploader to be able to add YouTube and Vimeo videos as attachments to a post instead ...
3
votes
1answer
307 views

Is it possible to enqueue the Youtube API script or does it have to be inline?

The code below is the main part of a function in my functions.php which returns a div and script which ultimately output a youtube API iframe to the template where the code had been called from. At ...
2
votes
2answers
583 views

Adding a wrapper to the youtube embed automatically?

With newer versions of WordPress, YouTube auto oEmbeds. On this particular site I am working on, I need a unique div wrapper around the embedded iframe. I had a look in my functions.php but couldn't ...
2
votes
2answers
1k views

Get all Youtube video's from posts and embed them on a different page

Is this possible? I want to let it check all my posts to see if there is a embedded Youtube video. If so, I want to show that on a different page, embedded and linking to that particular post... I ...
2
votes
1answer
4k views

add_filter to youtube embeds?

hey guys, when posting a youtube video link in the backend (in a post or a page) wordpress is automatically creating the embed code for me. Is it possible to add a filter to that? I'd love to change ...
2
votes
2answers
4k views

Youtube parameters within WordPress embed code?

Ok, so I want to embed youtube videos but also remove the annoying annotations. The following code works great from to embed the video [embed width="599" height="360"]youtube.com/watch?v=mNf0v2WkV0U [...
2
votes
1answer
122 views

Manipulating oembed_dataparse stopped working for YouTube embeds

My go-to code to manipulate YouTube embeds does not work anymore. Can anyone explain to me what I am doing wrong? This is my code in functions.php // OEMBED FILTER function bolster_oembed_filter( $...
2
votes
1answer
438 views

YouTube oEmbed and privacy-enhanced mode

When you´re embed a youtube video in an iframe, you can enable the privacy-enhanced mode, so YouTube doesn´t store information about your web page visitors until they play the video. I've tried to ...
2
votes
2answers
278 views

How can i add all videos from youtube playlist as post?

I want to add 200 videos from YouTube playlist to my WordPress blog. Each video iframe add as each post to particular category. I searched many plugins but that's not meet my requirement.
1
vote
2answers
66 views

Use oEmbed in List Items

I'm aware that WordPress has oEmbed functionality. But the content to be embedded has to be on it's own line like so: Lorem Ipsum http://www.youtube.com/link/to/content More Lorem Ipsum ...
1
vote
3answers
3k views

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 ...
1
vote
1answer
2k views

vimeo/youtube video embed with thumbnails

Is there a way to get wordpress to embed Vimeo, YouTube videos like tumblr with a thumbnail and then to play without the player buttons? examples - http://ascender.tumblr.com/ http://swell-theme....
1
vote
1answer
487 views

Grab YouTube Thumbnail AFTER Post?

I'm using a feed to receive special YouTube feeds organized via playlists. Unfortunately, the URL is not included in the description field, but I can get the videos to display by including the source ...
1
vote
1answer
1k views

Embed YouTube video from custom field value

I'm collecting Youtube video links in custom fields, but when I echo out the value it just prints the URL. How do I get WordPress to convert it to be embedded? Example: <?php global $post; $...
1
vote
1answer
1k views

Embeding YouTube video via a template function throws iframe cross-domain policy error

I'm using Wordpress 3.5 which natively supports embeds into posts and pages from many sites, YouTube included. When I embed a Youtube video directly onto a post or a page (by simply copying and ...
1
vote
1answer
27 views

Video Embed with Captions in Turkish

I normally embed videos by directly writing the URL in the WP built in [embed] code. Like: [embed]https://www.youtube.com/watch?v=p_o4aY7xkXg[/embed] But now I want this video to open automatically ...
1
vote
1answer
98 views

Is it possible to modify the default YouTube embed attributes string?

I'd like to suppress related YouTube videos by appending '&rel=0' to the string of embed attributes output to the video iframe in my post. I believe this requires a filter that modifies the $...
1
vote
1answer
210 views

Creating bulk posts with Youtube videos

I'm a bit new to Wordpress and I'm a bit lost reading all sort of docs about creating bulk posts using PHP. I've wrote a small code that using Youtube API v3 to get all the videos from a Youtube ...
1
vote
2answers
702 views

Link Youtube Channel In Wordpress Site

I am trying to develop a site where people can find and view videos of my activities from my youtube channel. I am quite new to wordpress but I decided to use it to achieve this purpose. I have been ...
1
vote
2answers
2k views

Lightbox Plus ColorBox plugin and auto playing YouTube video

I'm using WP v3.6 and v2.6 of the plugin and using inline lightboxes to open a YouTube video embeded with an iframe. My boss wants the video to play when the lightbox opens. So originally I tried: ...
1
vote
3answers
6k views

How to import my YouTube channel into WordPress?

I want to know how to import my YouTube channel into my WordPress website? Example: I have a YouTube channel with 7 videos. I want to bring all the videos into my WordPress website's sidebar. If ...
1
vote
1answer
61 views

pass user id in slug and get user information

I have user id and I am getting all information using user id on page with slug. When I pass the user id in slug then I am not getting user information on page. For example I have www.mysite.com/...
1
vote
1answer
114 views

How to save post change url youtube link?

In functions.php i using this to change width url from youtube: add_action('save_post', 'set_url_youtube'); function set_url_youtube() { $post = get_post($post_id); $content = $post->...
1
vote
1answer
2k views

How can i create a function to get youtube video time

Tom J Nowell posted this code to help me retrieve the YouTube video time. Functions // function to parse the code from the URL function parse_youtube_video_id_from_url( $video_url ) { $...
1
vote
1answer
84 views

Iframes inside bootstrap tab disappear when tab is shown

I am currently struggling with strange iframe behaviour: I have bootstrap tab with three youtube iframes in it. When I go to this tab for the first time, iframes dissappear, but if I click on another ...
1
vote
1answer
59 views

WordPress Editor not getting youtube video preview

When I am creating a post from the admin panel and using a youtube link in the Editor, the editor automatically fetching the video from youtube and displaying right away in the editor. But When i ...
1
vote
1answer
136 views

Cannot embed YouTube videos “Failed to embed” error

I get this error on multiple WordPress sites I run, when I try paste a YouTube video or use the shortcode [embed]: This only happens with YouTube. Other media websites such as Vimeo has no problem ...
1
vote
0answers
339 views

How to change the way wp_embed handles only youtube videos?

What i'm trying to do is have youtube videos show a div when they stop playing. Wordpress replaces youtube links automatically with embed code. Instead I'd like to replace it with something like: ...
1
vote
1answer
175 views

Feed error: A feed could not be found at youtube.com/… (1 post) [closed]

FeedWordPress doesn't work very well with YouTube feeds. The RSS feed clearly exists when I visit the link via web browser, but FeedWordPress can't find it. YouTube feeds work just fine with other ...
0
votes
1answer
375 views

How do I embed a YouTube video in WordPress 3.0?

I've upgraded to version 3.0. My site is wordswithfriends.net My administration panel looks like the following I thought there was supposed to be a special YouTube button which I don't seem to ...
0
votes
2answers
882 views

How to embed YouTube videos in posts without adding suggested videos at the end?

I have started posting YouTube videos as posts. I simply copy and paste the URL and WordPress figures out how to embed it. I like this workflow, but I don't like the embed code that WordPress ...
0
votes
1answer
45 views

WordPress keeps autoplaying my Youtube-Links no matter what I write

WordPress (with the LayerSlider plugin) keeps autoplaying my video no matter what code I use. Here's the embed-Link for the video: <iframe width="840" height="473" src="http://www.youtube.com/...
0
votes
1answer
821 views

How to make my new theme read [youtube id=“id of the video here” width=“600” height=“350”]?

I recently changed the theme on my website, and now all my videos, which were used on the posts with this format: [youtube id="only the id here" width="600" height="350"] are not understood, ...
0
votes
1answer
389 views

YouTube Sidebar Widget - YouTube service unavailable

I'm using WordPress 3.5 and YouTube Sidebar Widget 1.3.2. The plugin display service is unavailable. Why have I encountered service unavailable? The YouTube video is set to be public and embeddable.
0
votes
1answer
197 views

Forcing WP to embedd a video when using a shortcode

With the following shortcode for YouTube videos, how can I make it such that WordPress still automatically embeds the video for me? <? /** YouTube shortcode, usage: [youtube align="alignleft" id="...
0
votes
3answers
787 views

Convert all youtube link to embed

I have this function to convert any YouTube URL in any post or page to embed :- function embed_youtube_an($post_content) { global $posts; //preg_match('|http://www.youtube.com/watch?v=([a-zA-Z0-...
0
votes
1answer
436 views

oEmbed youtube video aspect ratio

When I insert youtube video in my post by just putting the link(http://youtu.be/KvtkknNawCQ). The video aspect ratio becomes 4:3. How can I change to 16:9?
0
votes
1answer
376 views

Div around YouTube video

My posts have YouTube embedded videos in the form of: <object width="600" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/...
0
votes
1answer
1k views

Use Click Image to Play Youtube Video in a Wordpress Loop

Here is my code on Playing Youtube Video when an image is clicked.. The HTML <div id="my-video" style="display:none;"> <div class="responsive-video"> <iframe src="http://...