Title: 媒体库
Author: Patrick Daly
Published: <strong>2014 年 3 月 6 日</strong>
Last modified: 2015 年 12 月 31 日

---

搜索插件

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

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

# 媒体库

 作者：[Patrick Daly](https://profiles.wordpress.org/developdaly/)

[下载](https://downloads.wordpress.org/plugin/library.1.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/library/)

## 描述

Create a library of reusable terms (strings) and display their contents anywhere
on your site with a shortcode.

Library lets you create a library of reusable terms (or strings) without any code
necessary and access a term’s content with a shortcode.

You can add a term (just like you’d add a post or page) called “Copyright Line” 
and its content could be “©2014 Your Company” and then use that anywhere on the 
site with `[library term="copyright-line"]` or `<?php do_shortcode( '[library term
="copyright-line"] ); ?>`.

Because the library terms are a post type they inherit WordPress features like revision
history, draft/scheduled/published, ability to change the term slug, full HTML, 
and so on.

**Business Cases**

These are real-world examples of how this plugin is being used or could be used.
Each of these uses a shortcode to display the most up-to-date version of a term’s
content.

A financial institution is advertising an interest rate across many pages on a large
website. There are instances of this percentage in content and in templates. Within
a matter of seconds all of these numbers can be changed rather than crossing your
fingers and hoping you caught all of the rates.

In order to quickly change the price of a fluctuating product a company put their
price in a term to update across the whole site.

A health insurance company uses the same disclosures on many pages and UI contexts
and keeping them compliant with changing regulations was difficult until they kept
them stored in the Library.

The copyright line in the footer of a website might change sometimes to reflect 
a new year, a new trademark, new ownership, etc.

[**Contribute on Github**](https://github.com/developdaly/library) | [**Report Bugs**](https://github.com/developdaly/library/issues?labels=bug&milestone=&page=1&state=open)

## 安装

#### Using The WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Search for ‘library’
 3. Click ‘Install Now’
 4. Activate the plugin on the Plugin dashboard

#### Uploading in WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Navigate to the ‘Upload’ area
 3. Select `library.zip` from your computer
 4. Click ‘Install Now’
 5. Activate the plugin in the Plugin dashboard

#### Using FTP

 1. Download `library.zip`
 2. Extract the `library` directory to your computer
 3. Upload the `library` directory to the `/wp-content/plugins/` directory
 4. Activate the plugin in the Plugin dashboard

## 评价

此插件暂无评价。

## 贡献者及开发者

「媒体库」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Patrick Daly ](https://profiles.wordpress.org/developdaly/)
 *   [ Mike Manger ](https://profiles.wordpress.org/mikemanger/)
 *   [ adamkrawiec ](https://profiles.wordpress.org/adamkrawiec/)

[帮助将「媒体库」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/library)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.0

 * Adds a media button to easily insert shortcodes
 * Improved error handling

#### 1.0.2

 * Localized admin screen strings
 * Escaped admin screen strings

#### 1.0.1

 * Updated base language file
 * Typo fixes
 * Removed blank index.php files

#### 1.0

 * First version

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 3.8.1 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/library/)
 * 标签
 * [content](https://cn.wordpress.org/plugins/tags/content/)[dictionary](https://cn.wordpress.org/plugins/tags/dictionary/)
   [library](https://cn.wordpress.org/plugins/tags/library/)[shortcodes](https://cn.wordpress.org/plugins/tags/shortcodes/)
   [strings](https://cn.wordpress.org/plugins/tags/strings/)
 *  [高级视图](https://cn.wordpress.org/plugins/library/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/library/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/library/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/library/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/library/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/library/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/library/reviews/)

## 贡献者

 *   [ Patrick Daly ](https://profiles.wordpress.org/developdaly/)
 *   [ Mike Manger ](https://profiles.wordpress.org/mikemanger/)
 *   [ adamkrawiec ](https://profiles.wordpress.org/adamkrawiec/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/library/)