Title: Get GitHub Code
Author: pizn
Published: <strong>December 9, 2011</strong>
Last modified: December 12, 2011

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/get-github-code.svg)

# Get GitHub Code

 By [pizn](https://profiles.wordpress.org/pizn/)

[Download](https://downloads.wordpress.org/plugin/get-github-code.zip)

 * [Details](https://wordpress.org/plugins/get-github-code/#description)
 * [Reviews](https://wordpress.org/plugins/get-github-code/#reviews)
 *  [Installation](https://wordpress.org/plugins/get-github-code/#installation)
 * [Development](https://wordpress.org/plugins/get-github-code/#developers)

 [Support](https://wordpress.org/support/plugin/get-github-code/)

## Description

Get GitHub Code is a wordpress plugin for a post or single page to show the code
form GitHub Repository. With GitHub API v2 to get the data, and save on the server
cache file, have a limit time for cache file.

You can get the code you like , and show it at the post. Every post can show one
Repository code.

PHP version 5.2.0 +, and `curl` be able.

## Screenshots

[⌊The setting page.⌉⌊The setting page.⌉[

The setting page.

[⌊A part of the post edit.⌉⌊A part of the post edit.⌉[

A part of the post edit.

## Installation

 1. Extract to “wp-content/plugins/” directory.
 2. Activation this Get-GitHub-Code plugins.
 3. Create a file for save the cache on your server, make sure your file have write
    and read permissions.
 4. Go to the setting page, input your cache path, choose your cache limit time, and
    save it.
 5. Add `<?php igit_getcode(); ?>` in your wordpress theme’s single.php.
 6. Edit post, fill the form on right side about github connect, save the post and 
    you will view on the post.

## FAQ

#### I got the message “Here is the code get form GitHub, but it have some problem. Please wait 1 hours later.”, how to fiexd it ?

You may change your cache time by 1 Minute and ref lash the post. When it done, 
change cache time you like again.

#### And this: “Oh, the code form github can’t not get! Please contact the site master..’”

Please check your cache file exit and it should be Read and write permissions!

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Get GitHub Code” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ pizn ](https://profiles.wordpress.org/pizn/)

[Translate “Get GitHub Code” into your language.](https://translate.wordpress.org/projects/wp-plugins/get-github-code)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/get-github-code/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/get-github-code/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/get-github-code/)
by [RSS](https://plugins.trac.wordpress.org/log/get-github-code/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * The previous version

## Meta

 *  Version **1.0**
 *  Last updated **15 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.0.0 or higher **
 *  Tested up to **3.0.5**
 * Tags
 * [code](https://wordpress.org/plugins/tags/code/)[Github](https://wordpress.org/plugins/tags/github/)
 *  [Advanced View](https://wordpress.org/plugins/get-github-code/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/get-github-code/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/get-github-code/reviews/)

## Contributors

 *   [ pizn ](https://profiles.wordpress.org/pizn/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/get-github-code/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://me.alipay.com/pizn)