Articles of videos

how to add new .webm mime types

i tried google but no success yet. I am trying to upload .webm and .ogg video types in wordpress ( for html5 video ofcourse) I am getting error like Baki fula.webm” has failed to upload due to an error Sorry, this file type is not permitted for security reasons. tried plugins like PJW Mime Config […]

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; $video = get_post_meta( $post->ID, ‘_my_video_link’, true ); echo ( $video ); ?> Just outputs http://www.youtube.com/watch?v=tkEvSjdDfiA But I want it to […]

disable video URL auto-embedding for a part of the post

In a post I want to add a list of URLs as a plain text. However, as some of URLs points to video sites, wordpress tries to embed those as videos. What is the way to disable this automatic embedding for a text fragment so in the rest of the post they continue to work? […]

Getting a thumbnail for an external video as the thumbnail for a custom post type?

I saw some other similar threads but they were all for YouTube videos. I was wondering if the same could be done for videos hosted on other servers like blip. Here is an example of a blip video: http://blip.tv/file/4778330 This is how I currently have things set up: I have a custom post type for […]

How can I get the shortcode to allow query string parameters?

Using WordPress 4.4.2 (latest version as of writing this) I’m trying to use the shortcode to show a video on my site. If I provide a url ending with the filename.mp4 it works fine: but when I add a querystring parameter to the end of the URL, it refuses to show the video player. Instead, […]

wp_insert_post iframe missing

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = array( ‘post_title’ => $_POST[‘title’], ‘post_content’ => $_POST[‘content’], ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ‘post_author’ […]

Best Practices for Video Uploads to WordPress

I’m working on a theme and one of the features I’m quite happy with is the slider supports background videos. The problem is however, that WordPress (although I think it’s more a PHP issue) has a limit of 2MB on file uploads, and as you know, most videos are bigger than that. So I haven’t […]

How to get Poster (thumbnail) Image of Video

I’m getting all videos using the function below and it’s working fine. Now I want to get the videos Poster Image (Thumbnail Image) from that video. How can I get the video Image as thumbnail? I’ve also tried to get thumbnail by this function but It’s not working $page_id = 659; $page_data = get_page( $page_id […]

How to overwrite youtube embed?

I really like how you can just paste a URL right into the post… such as: http://youtube.com/watch?v=xyz or http://vimeo.com/123456 What I want to do is change the default code for this to support the code from here: http://embedresponsively.com/ How can I go about overwriting the youtube and vimeo code, I’m assuming in functions.php somehow?

How to generate a featured image from a video embeded in a metabox

I have a metabox that allows me to add videos from Youtube and Vimeo on posts with video post format. I am now looking into automatically generate thumbnails for these post with video post format. This is my meatabox bit of code that allows me to embed the videos: function my_theme_show_post_video_metabox( $post ) { wp_nonce_field( […]