Embed GitHub Gist
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 t
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
- 01Download the plugin zip file
- 02Unzip contents of plugin zip file
- 03Upload the embed-github-gist directory to the /wp-content/plugins/ directory
- 04Activate the plugin through the ‘Plugins’ menu in WordPress
- 05Start 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]