Skip to content

Instantly share code, notes, and snippets.

@kprimdal-dk
kprimdal-dk / embed-gist.php
Created October 3, 2012 10:03 — forked from roborourke/embed-gist.php
Adds autoembedding of gist urls in WordPress
<?php
/**
* Usage:
* Paste a gist link into a blog post or page and it will be embedded eg:
* https://gist.github.com/2926827
*
* If a gist has multiple files you can select one using a url in the following format:
* https://gist.github.com/2926827?file=embed-gist.php
*/