Getting youtube links from post_content not working

Ok here is working code: function get_yts() { $query_args = array( ‘s’ => ‘youtube.com/watch?v=’, ); $posts = get_posts( $query_args ); foreach ($posts as $p) { $input_line = $p->post_content; $output_array = array(); preg_match(‘/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?[\w\?‌​=]*)?/’, $input_line, $output_array); print_r($output_array); } }

Embed youtube list with sidemenu opened

This isn’t possible, youtube doesn’t provide an embed with an open playlist. If it did, this isn’t something that could be resolved from the WordPress end, as it’s a Youtube OEmbed issue. You will need to refer to Youtube documentation or their support channels

Link Youtube Channel In WordPress Site

Old anwser What you are trying to is to import all your videos from your YouTube channel to your WordPress blog. Unfortunately YouTube is not providing any public web service that will allow external servers to get the kind of data you want to import. I don’t think you will find any plugin capable to … Read more

Creating bulk posts with Youtube videos

You already have your updateYoutube() function. Edit it to insert a new post. Very generally: function updateYoutube( $videocode ){ global $conn; $run = $conn->query(“SELECT `ID` FROM `youtubetable` WHERE `ID` = ‘$videocode'”); if ($run->num_rows > 0) return false; else { if ($conn->query(“INSERT INTO youtubetable (`ID`) VALUES (‘$videocode’)”) === TRUE) { // ################################# // NOTE: The following … Read more

Video Embed with Captions in Turkish

Okay the thing is that the oembed endpoint seems not to support any other than the default parameters. So it seems that all you can do is parse the response and add in your parameters to the iframe src. This should do it (untested) function wpse_218836_add_youtube_parameter( $return, $data, $url ){ if ( $data->provider_name === ‘YouTube’){ … Read more

Grab YouTube Thumbnail AFTER Post?

Each YouTube video has 4 generated images. They are predictably formatted as follows http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg The first one in the list is a full size image and others are thumbnail images. so if you have the video url the you can extract the video id from it call your image, and to do … Read more