I am using phpcs to help with making sure I write nice, valid WP theme code but am coming across the following issue regarding escaping before output. If I...
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....
Is there a way to give oEmbed codes a special markup in the visual editor? In my dream implementation you paste an oEmbed-enabled url in the editor, which will...
I was wondering if it’s possible to use oEmbed that is built into the core of WP to display video embeds but somehow remove the height and width attritbutes...
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...
THE GOAL I’m trying to parse a url and convert it to an embedded video player in my post’s content but I think my regEx is off or I’m...
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)...
I am using embedded video short code of WordPress for showing video in the content of a post . and the rendered html is <iframe width="600" height="338" src="https://www.youtube.com/embed/f5CcOq8UzkI?feature=oembed" frameborder="0"...
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($url_string, $id); if (isset($id['v'])) { return '<iframe class="youtube-player" type="text/html" src="https://www.youtube.com/embed/' .$id['v'].'?vq=large&autohide=1&autoplay=1&fs=1&hl=fr&rel=0&loop=1" frameborder="0"...
WordPress has wp_oembed_get, which I use to get rich media content with embed.ly. I’ve previously used oEmbed api calls such as this. As you can see it provides thumbnail_url,...