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

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 ...
0
votes
1answer
50 views

Widget to embed youtube video

I am new to WordPress development. Currently I am trying to make an widget to embed video from youtube. My plan is an admin or an author will just give the video id and the video will be in widget ...
0
votes
1answer
40 views

Add video tag to youtube link fron content

I have variable $post->post_content that return me detail of post and some video URL from YouTube. I need to remove any text from $post->post_content else YouTube link, And add to YouTube likn ...
0
votes
1answer
399 views

How to set YouTube video as featured image?

I am trying to have all my posts with post_format set as video, have said video as the featured image. Here is what I am working with thus far but I need some help: if($post_format == 'video') { ...
0
votes
1answer
197 views

Filter for wp_embed_handler_youtube not working

In Wordpress 4.0, if I create a new post and paste a YouTube link directly into the post editor, Wordpress will automatically convert it to a YouTube embed tag. I'm trying to edit the default output ...
0
votes
1answer
114 views

change output location of plugin function using a custom hook

I'm running the YouTube Video Fetcher plugin and it fetches youtube videos and displays it on your website. However, instead of displaying the video after the post, I want to hook the code into a ...
-2
votes
1answer
396 views

How do I add a video to a custom field instead of a post body using Automatic Youtube Video Posts plugin?

I'm using the theme called wptube2 and using a plugin with it called Automatic Youtube Video Posts so it can import every video I upload on youtube. It does import every video (which is PERFECT for ...
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: ...
0
votes
0answers
25 views

Edit PHP / “Categories Images” Plugin

I need to upload YouTube videos to one of the folders/categories using "Categories Images" plugin. I know it is designed to create a gallery of images only, but with the way the website is structured, ...
0
votes
0answers
24 views

Author predefined templates

Is there some way in WordPress to "templatize" the page published by each author on the website? For instance, I would want each post to have a video compulsorily, and will be incorporating a YouTube ...
0
votes
0answers
41 views

Youtube - Embed as IFRAME

When I embed a YouTube video through the suggest manner (paste url) it adds this as an object. Is there a way to embed as IFRAME intsead?
0
votes
0answers
53 views

How to wrap an element around youtube videos

function youtube_wrapper($postcontent) { // Match YouTube iFrames $youtubestring = '~<iframe.*youtube.*</iframe>~'; preg_match_all($youtubestring, $postcontent, $matches); ...
0
votes
0answers
59 views

Using function to set youtube featured image works, but doesn't update before manually clicking post update

I am using a function to set the post featured image for a youtube video (see below). My Wordpress blog post is made by IFTTT (If This Then That). The function works, but the featured image update is ...
0
votes
0answers
292 views

Youtube Iframe Api play one video at a time

Below is my code and only video 1 can stop video 2 but video 2 can not stop video 1. I want one video to play at one time. What could be the reason and i am using shortcode and below is my code in ...
0
votes
0answers
31 views

How to make Youtube short code transfer

I have moved my wordpress from wp hosted to privately hosted. I exported my posts and imported them in to my new site. Many posts included youtube embeds that look like this [youtube=http://www....
0
votes
0answers
140 views

How to load post_meta for custom post type via Ajax

I'm trying to load a YouTube video via ajax outside the loop. I have it working on regular pages, but not anything loaded via ajax. A user would click a button, then a YouTube video will load via ajax,...
0
votes
0answers
405 views

Pull latest Youtube Video from json url and make new post

I am trying to automatically "add-new" Wordpress post when a Youtube User uploads a new video. Using wp_insert_post(); I can echo what I need to, but how do I write a function that determines: "If ...
0
votes
0answers
163 views

Get First Image Or youtube Thumbnail with link to youtube video

Looking for a single function to grab the first image or video thumnail (with link to the video location i.e. youtube) Havent quite found one that will work. My youtube file starts with there new ...
0
votes
0answers
84 views

Search for featured image, then for first image, then for video thumbnail

I want wordpress to use featured image to create thumbnail. If there is not, then first image of the post. If not, video thumbnail. Can anyone help me modifying the code? Thanks in advance. USED ...