WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by dflydev v0.13

Embed GitHub Gist

Embed GitHub Gists into WordPress.

Embed GitHub Gist

The facts

Rating
5★ from 4
Active installs
100+
Price
Free
Last updated
13 Dec 2012
Added
Aug 2010
Requires WP
2.8.6
Tested up to
WP 3.5.2
Downloads
13,534

Our analysis

AI-assisted

Embed GitHub Gist is a WordPress plugin that allows you to embed GitHub Gists into your posts and pages using shortcodes. It also supports manual embedding for situations where shortcodes cannot be used. The plugin caches content to reduce loading times, using the Transients API with a default time-to-live of one day.

This plugin is suitable for WordPress users who want to incorporate code snippets or other content from GitHub Gists into their site easily. It is particularly useful for developers or bloggers who frequently share code examples.

Best for: WordPress users who need to share code snippets or Gists on their site.

What it does well

  • Allows embedding of GitHub Gists using shortcodes
  • Supports manual embedding for flexible placement
  • Implements caching with the Transients API

Where it falls short

  • Last updated in December 2012, may not be fully compatible with newer WordPress versions
  • Limited features based on the author's description

Verdict

Embed GitHub Gist provides basic functionality for embedding Gists, but its age and limited updates may affect compatibility and support.

From the developer

dflydev's own description of Embed GitHub Gist, lightly tidied.

This project is available for forking on GitHub:

  • https://github.com/dflydev/embed-github-gist

Embed GitHub Gists into
WordPress. Provides a shortcode for posts and pages but also has the ability
to embed by hand in the event that a Gist needs to be embedded somewhere in
the page that does not pass through the shortcode filters.

Examples:

[gist id=546764]
[gist id=546764 file=file.txt]
[gist id=546764 file=file.txt bump=1]
[gist]http://gist.github.com/546764[/gist]

Cache is implemented with the Transients API to minimize delay on loading
content. Default TTL (time to live) is 86400 seconds or one day.

Upcoming features:

  • Option for setting default TTL
  • Option to bypass cache entirely
  • Implement admin interface to control options

Read the full description on the official page →

Tagged as