Title: Get GitHub Code
Author: pizn
Published: <strong>2011 年 12 月 9 日</strong>
Last modified: 2011 年 12 月 12 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Get GitHub Code

 作者：[pizn](https://profiles.wordpress.org/pizn/)

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

 * [详情](https://cn.wordpress.org/plugins/get-github-code/#description)
 * [评价](https://cn.wordpress.org/plugins/get-github-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/get-github-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/get-github-code/#developers)

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

## 描述

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.

## 屏幕截图

[⌊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.

## 安装

 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.

## 常见问题

#### 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!

## 评价

此插件暂无评价。

## 贡献者及开发者

「Get GitHub Code」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Get GitHub Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/get-github-code)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/get-github-code/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/get-github-code/)，或通过[RSS](https://plugins.trac.wordpress.org/log/get-github-code/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/get-github-code/)。

## 更新日志

#### 1.0

 * The previous version

## 额外信息

 *  版本 **1.0**
 *  最后更新：**15 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/get-github-code/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[Github](https://cn.wordpress.org/plugins/tags/github/)
 *  [高级视图](https://cn.wordpress.org/plugins/get-github-code/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/get-github-code/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/get-github-code/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://me.alipay.com/pizn)