Playground

Fun stuff that I'm working on, sites I've made, marketplace items, etc. These are pretty random, and often in weird states of development. But there is some pretty cool stuff.

Oembed Content Replacement

Oembed is an awesome technology that's been in Wordpress for years. When I did the content import for greaserag.org, I had to figure out how to make it work.

The basic gist is this - you put a URL in to your content without a link, just as it's own paragraph. The content is parsed for those URLs, and content replaced. So http://www.youtube.com/watch?v=ShbC5yVqOdI will turn into this:

Danny Macaskill - Industrial Revolutions

You don't need to add a block of content, then a video, then another block of content. You don't need specialized blocks for flickr or vimeo, or any one of over 250 providers.

Want to learn more?

blog comments powered by Disqus

Featured Post