這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 | Report Bugs

安裝

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

評價

There are no reviews for this plugin.

貢獻者及開發者

“Library” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Library 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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