Here’s a little snippet that you might like to use, automatically embed gists from github by simply pasting the URL into a post or page. It makes life easier if you prefer to use the visual editor when authoring content.
Github gists are a great way to create, develop and share snippets of code quickly.
by
[...] to Robert for handy [...]
[...] to Robert O’Rourke for this handy piece of [...]
Hi, this is great, but it seems to insert an extra line break between each line in the gist. The line numbers on the left are correct, but the gist itself extends way beyond them. It does it here on your site, and also when I try it on mine. Any ideas what might be causing that?
[...] ); return apply_filters( 'embed_gist', $embed, $matches, $attr, $url, $rawattr ); } ?>Source Add PayPal Donate ButtonAdd this snippet to the functions.php to add [...]
Thanks.Help me much.Why you dont share more trick about wordpress?
[...] ); return apply_filters( 'embed_gist', $embed, $matches, $attr, $url, $rawattr ); } Code Snippet Thanks To Robert O’Rourke Tagged: embed, gist, github, wordpress hack, wp_embed_register_handler Author: [...]
Perfect, just added the code to my functionality plugin and it works great!
[...] Source [...]
This is brilliant, thanks!
[...] Source [...]
[...] can check out the demo from Robert’s post. [...]
[...] found this snippet of code at Robert O’Rourkes blog. It easily lets you embed a gist from github to your wordpress posts. Up til now i’ve been [...]
[...] Volta e meia cai nos meus feeds uns códigos que são uma mão na roda. Dessa vez o Post foi o ‘Easily embed and share Github gists on your WordPress blog’ ( http://www.wprecipes.com/easily-embed-and-share-github-gists-on-your-wordpress-blog ) que já se baseou no EMBED ALL THE GISTS! ( http://interconnectit.com/3920/embed-all-the-gists/ ). [...]
[...] to Robert O’Rourke for this handy piece of [...]
[...] to Robert O'Rourke for this handy piece of code! If you enjoyed this article, please consider sharing it! [...]
cheers, one less plugin needed on my site!
Cool, which plugin were you using?
I’ve been thinking about something that ties into the API and gives you a few more tools to play with but it always good to look at the competition first
Hi, I am wondering if new comment replies could be pushed above older comments? Thanks!
I guess I should say, new replies to a comment could push that entire comment entry above other comments
I’m sure it’s doable – is this a general enquiry about WordPress or something you think we should implement on this site?