Insight & Insanity

web development with a dash of life

GitHub Gist Files Shortcode Plugin

Now in the WordPress Plugins Directory!

UPDATE: GitHub Gist Files Shortcode is now live on the WordPress Plugin Directory. Click here to view or download it from there.

If you are any bit familiar with GitHub you have undoubtedly heard of GitHub Gists. Gists are a way of sharing short snippets of code or a collection of multiple snippets saved as independent files in a single Gist. Gists are absolutely wonderful as they are, but when paired with GistBox, you have the ultimate snippet organization and sharing tool at hand. GistBox adds some features to Gists such as labeling and presents your Gists in a beautiful UI.

To make a long story short. I have been in the process of optimizing and sliming down this site as much as possible to see just how fast I can get it to load. One of the ways I have been doing this is by removing every unneeded script, removing any plugins that I could do without, and outsourcing files, either by using a CDN or by using hosted services, such as GitHub.

Every code snippet from tutorials and walkthroughs is being moved over to GitHub Gists. The plugins I found to make inserting them into my posts easier didn’t have the couple simple features that I wanted. So I spent the time and created my own. For now it is rather simple, but it has a couple of cool features and more to come.


Three ways are provided to insert the shortcode. The value “xxxxxx” represents your Gist ID, and “name” is the filename of the file within the Gist.

  • Insert manually.
  • By using the HTML Editor shortcode button.
  • By pressing ctrl+alt+g.

You can place these shortcodes in pages, posts or any custom content.


  1. Unzip and upload gist-file-shortcode folder to wp-content/plugins.
  2. On WordPress admin panel, activate plugin.




  • Added automatic plugin updating for downloads.

Released under the GPLv2 or later.



    Thanks. love this plugin.

    • AJ Troxell

      Really glad that you like it!