WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Embed GitHub Gist

Embed GitHub Gists into WordPress.

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]

Requires: 2.8.6 or higher
Compatible up to: 3.5.2
Last Updated: 2012-12-13
Downloads: 7,131

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 50,2,1
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,3,3
100,1,1 0,1,0
0,1,0 100,1,1
100,2,2
100,2,2
100,1,1