I have a custom meta box set up that allows users to paste the Youtube URL of a video so that it can be embedded into a post/page. The...
For WordPress, I want to auto generate thumb of the video embedded on a page using oembed? And then save it as a featured image of the post. Any...
I have a site with tons of posts hundreds/thousands of which have YouTube videos embedded. Most use the default youtube_url format and the actual embed code is stored in...
The goal is to grab the first video (embed or shortcode) from the post. So we need to check post content if it has embedded videos ( supported by...
I have a function in my wordpress theme that deletes the first embedded video in a video post. See code below. This is in the functions.php file. /* -...
I’m trying to create a conditional statement for the content width in the functions.php of my theme. So some categories will have a content_width of 580, some will have...
I want to specify an alternative image that will be displayed when oEmbed fails. The specific use case is to offer an alternative when China (or other countries) block...
My copy of WordPress outputs two <link/> tags in the header of (nearly?) every page. They look like this. <link rel="alternate" type="application/json+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fexample.com%2Fbust%2F" /> <link rel="alternate" type="text/xml+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fexample.com%2Fbust%2F&format=xml" />...
I’m having a problem here: I am passing this through a custom field: http://www.youtube.com/watch?v=E6P1Q-UycHA&autoplay=1 (notice the autoplay=1) But when I load the video on my theme using wp_oembed_get… it...
I am making a WordPress Theme for a website with video tutorials. I would like to put the video that is embedded in the content (with oEmbed) in a...