Plugin info

Total downloads: 13,103
Active installs: 100
Total reviews: 4
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 12/13/2012 (4764 days ago)
Added to WordPress: 8/24/2010 (15 years old)
Minimum WordPress version: 2.8.6
Tested up to WordPress version: 3.5.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4764 days ago • 4 reviews

22/100

Is Embed GitHub Gist abandoned?

Possibly abandoned (last update 4764 days ago).

Compatibility

Requires WordPress: 2.8.6
Tested up to: 3.5.2
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

SyntaxHighlighter Evolved
Rating 4.3/5 (87 reviews)Active installs 20,000
WooCommerce Hear About Us
Rating 5.0/5 (8 reviews)Active installs 600
Source Affix
Rating 4.9/5 (8 reviews)Active installs 500
Power Code Editor
Rating 0.0/5 (0 reviews)Active installs 300
Source Medium Tracker for Contact Form 7
Rating 5.0/5 (2 reviews)Active installs 100
SyntaxHighlighter Plus
Rating 5.0/5 (1 reviews)Active installs 100

Description

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

Installation

  1. Download the plugin zip file
  2. Unzip contents of plugin zip file
  3. Upload the embed-github-gist directory to the /wp-content/plugins/ directory
  4. Activate the plugin through the ‘Plugins’ menu in WordPress
  5. Start using the plugin by adding Gists to posts!

Frequently Asked Questions

How can I fix rate limit exceded errors?

Define EMBED_GISTHUB_USERNAME and EMBED_GISTHUB_PASSWORD in wp-settings.php.

Can the cache be broken?

Yes. Use a unique bump value to force cache to update. For instance, if you have
the following:

[gist id=546764]

The cache can be broken by specifying a bump value:

[gist id=546764 bump=1]

To break the cache again later, change to a new unique bump value:

[gist id=546764 bump=2]

Can I change the TTL on a Gist-by-Gist basis?

Yes. Specify a TTL (in seconds) like this:

[gist id=546764 ttl=3600]

Can I embed a Gist outside of a post or a page?

Yes.

<?php echo embed_github_gist(546764); ?>

Can I display a specific file from my gist?

Ues. You can use the file parameter:

[gist id=546764 file=file.txt]

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

0.13

  • Looks at EMBED_GISTHUB_USERNAME and EMBED_GISTHUB_PASSWORD for API requests

0.12

  • Bump release (“same as 0.11”)
  • Added upgrade notes

0.11

  • Updated to account for recent changes to Gist.

0.10

  • Bump release (“same as 0.9”)

0.9

  • Fix js link bug. Thanks to wrightlabs.

0.8

  • Better handle SSL errors. Thanks to gabesumner and CaioProiete.

0.7

  • Edit to also include $file in cache key (thanks https://github.com/troufster)

0.6

  • Embed stylesheet is now cached locally by default
  • Fixed small file-bug when using json

0.5

  • Updates from oncletom (change default settings, works with new HTTPS URL from Gist)

0.4

  • Bump release (“same as 0.2”)

0.3

  • Bump release (“same as 0.2”)

0.2

  • Added to support passing a Gist URL as the content of the [gist] shortcode.

0.1

  • First release.