Embed a Kickstarter Video in a WordPress Post

Kickstarter videos are iframes which can’t usually be embedded in WordPress posts. This is just silliness on Kickstarter’s part because WordPress powers a huge number of websites on the web. If people could easily embed a Kickstarter video in a WordPress post I think they would be more inclined to post about them.

Embed a Kickstarter video in a WordPress post

So I looked around for a while and found some possible solutions but most of them seemed to be a bit of a hassle until I found this Kickstarter WordPress plugin by Dan Conley.

He says that it’s delicate because it might break if Kickstarter changes.

It’s fragile as hell: if KS ever changes their url structure, or the location of their videos, etc etc, it will break. I could put more work into it, and I’m sure there are plugins that may do this exact thing already, but this seemed to be the quickest option. If you think this could be helpful, you can right click and save kickstarter.php and upload it to your wp-contents/plugins directory.

The link is broken so here is the code. Just save it as a php file and upload as usual to your plugin folder:

[php]<?php
/*
Plugin Name: Kickstart embedder
Description: Add [kickstarter file=link_to_project /] (ie [kickstarter file=https://www.kickstarter.com/projects/2pp/minecraft-the-story-of-mojang /] to embed a Kickstarter video
Version: 0.5
Author: Dan Conley
Author URI: http://www.danconley.net
*/

function Kickstarter_Parse ($content) {
global $post;
$content = preg_replace("/\[kickstarter file=https:\/\/www\.kickstarter\.com\/projects\/([^ ]+) \/\]/i","<iframe frameborder=\"0\" height=\"410px\" src=\"https://www.kickstarter.com/projects/$1/widget/video.html\" width=\"480px\"></iframe>",$content);

return $content;
}

add_filter(‘the_content’, ‘Kickstarter_Parse’);
?>[/php]

5 Comments

  1. I can’t for the life of me figure this out. When I “right click and save kickstarter.php” (actually, control+click+”Download Linked File” because I’m on a Mac) nothing saves to my downloads. Does the plugin not exist anymore or am I an idiot?

    1. Hey, it seems the link is broken, perhaps he no longer decided to host the file or deleted it by accident or something. I have edited the post to include the code though so good luck. I will also be posting about another option for embedding Kickstarter videos soon so stay tuned.

      1. Thank you for answering. I wound up getting impatient and uploading the video to Vimeo (I have the file because I made the video for the band whose campaign I’m sharing) but I will keep it in mind to come back if I ever need to embed one in the future!

  2. You can use allavsoft to download Kickstarter Videos to MP4, WMV, MOV, AVI, FLV, etc.

    1. I guess this post is irrelevant now as you just need to add the Kickstarter url to the post on its own line.

Leave a Reply

Your email address will not be published. Required fields are marked *