Title: GitHub Repository Shortcode
Author: f13dev
Published: <strong>2016 年 7 月 14 日</strong>
Last modified: 2018 年 9 月 15 日

---

搜索插件

![](https://ps.w.org/f13-github-repo-shortcode/assets/banner-772x250.png?rev=1454608)

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

![](https://ps.w.org/f13-github-repo-shortcode/assets/icon-256x256.png?rev=1454608)

# GitHub Repository Shortcode

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

[下载](https://downloads.wordpress.org/plugin/f13-github-repo-shortcode.zip)

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

 [支持](https://wordpress.org/support/plugin/f13-github-repo-shortcode/)

## 描述

If you are a programmer who uses GitHub then why not share your coding projects 
via your WordPress blog by adding a snapshot
 of your repository on any page or 
post using shortcode.

Simply install the plugin and add the shortcode [gitrepo author=”author” repo=”repo”]
to the desired location; changing the attributes to that of your desired repository.

Features include:

 * Cached using Transient
 * Styles appearance with a GitHub banner
 * Shows the repository description
 * Adds a link to the repository on GitHub
 * Shows statistics for Forks, Stars, Open Issues
 * Provides a link to the latest tag (if one exists)
 * Displays the code to clone the repository
 * Can be used with or without a GitHub API Token

## 屏幕截图

[⌊An example showing the results of the shortcode [gitrepo author="wordpress" repo
="wordpress"]⌉⌊An example showing the results of the shortcode [gitrepo author="
wordpress" repo="wordpress"]⌉[

An example showing the results of the shortcode [gitrepo author=”wordpress” repo
=”wordpress”]

## 安装

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Add the shortcode [wpplugin author=”author” repo=”repo”] to the desired location
 4. If desired, add a GitHub API Token and/or alter the cache timeout on the admin 
    page Settings->F13 GitHub Repo Shotcode

## 常见问题

  Is a GitHub API token required

No… Although it is recommended, especially if you wish to have the cache timeout
set to a low value, or if you use multiple instances of the shortcode.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「GitHub Repository Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/f13-github-repo-shortcode)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/f13-github-repo-shortcode/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[Github](https://cn.wordpress.org/plugins/tags/github/)
   [profile](https://cn.wordpress.org/plugins/tags/profile/)[repo](https://cn.wordpress.org/plugins/tags/repo/)
   [repository](https://cn.wordpress.org/plugins/tags/repository/)
 *  [高级视图](https://cn.wordpress.org/plugins/f13-github-repo-shortcode/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://f13dev.com/wordpress-plugin-github-repo-shortcode/)