[WordPress] 外掛分享: Library

首頁外掛目錄 › Library
900+
安裝啟用
★★★★★
5/5 分(1 則評價)
3731 天前
最後更新
問題解決
WordPress 3.8.1+ v1.1.0 上架:2014-03-05

內容簡介

建立一個可重複使用名詞 (字串) 的資料庫,在網站上任何位置透過 shortcode 顯示其內容。

Library 讓您可以輕鬆地建立一個可重複使用名詞 (或字串) 的資料庫,並透過 shortcode 存取該名詞的內容,無需任何程式碼。

您可以新增一個名詞 (就像新增一篇文章或頁面一樣) 命名為「Copyright Line」,其內容可以是「©2014 Your Company」,然後使用 [library term="copyright-line"] 或 <?php do_shortcode( '[library term="copyright-line"] ); ?> 在任何網站位置顯示。

因為資料庫名詞是一種文章型態,所以它們會繼承 WordPress 功能,如修訂歷史記錄、草稿/排程/已發佈文章、更改名詞 slug、完整 HTML 等。

商業案例

以下是此外掛程式的真實世界應用或可能的應用範例。每個範例都使用 shortcode 顯示名詞內容的最新版本。

一家金融機構正在大型網站上廣告一個利率,此數字在內容和範本中都有出現。在幾秒鐘內,所有這些數字就可以改變,而不需要靠運氣來抓到所有利率的位置。

為了快速更改波動產品的價格,一家公司將其價格儲存在一個名詞中,以在整個網站上更新。

一家健康保險公司在許多頁面和 UI 上使用相同的披露事項,以遵守不斷變化的法規,並且難以維護,直到他們將它們存儲在 Library 中。

網站頁尾的版權訊息有時可能會更改以反映新年度、新商標、新所有權等。

於 Github 上參與付貢獻 | 回報問題

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 .
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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon