[WordPress] 外掛分享: Shortcode Datastore

首頁外掛目錄 › Shortcode Datastore
全新外掛
安裝啟用
尚無評分
1415 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.2.4+ v1.2.0 上架:2020-02-08

內容簡介

這是一個 WordPress 外掛,可讓您靈活地將文字或 HTML 綁定到短代碼,然後將其插入到頁面、文章或範本中。這樣可以將相同的文字/HTML 插入到多個位置,然後從一個儀表板進行管理。

使用方式

啟用外掛後,在 WordPress 管理員儀表板的左側側邊欄中會出現一個名為 “Shortcode Datastore” 的新外掛選項。
單擊 “Shortcode Datastore” 按鈕將打開外掛儀表板,其中顯示當前可用的短代碼列表。

單擊 “新增短代碼” 按鈕將打開一個新的編輯窗口以創建短代碼。

所選的新短代碼鍵必須是唯一的(不能用於另一個短代碼)。
默認情況下,鍵會轉換為小寫字母,空格則會替換為下劃線。
短代碼值可以在標准的 WordPress 編輯器中以文本或 HTML 的形式輸入。當使用短代碼時,這個值會顯示在網站上。

短代碼表顯示現有的短代碼條目。

單擊行的 “編輯” 按鈕會打開一個編輯窗口,可以修改短代碼值。
單擊行的 “刪除” 按鈕會刪除短代碼鍵和值。
短代碼本身可以從輸入欄中複製並插入到頁面、文章或範本中(任何標准 WordPress 短代碼支援的地方)。
替換變數是一種向您的短代碼添加動態內容的方式。替換變數的格式為 %名稱%,值會在呈現時被替換。目前支援的替換變數有:

%YEAR%:會被當前的四位數年份值替換。

Shortcode Datastore 也可用於 WordPress 多站點安裝。可以在啟用了該外掛的任何子站點中創建和訪問短代碼(建議網路啟用外掛)。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Shortcode Datastore」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A WordPress plugin that allows for flexible text or HTML to be bound to shortcodes that can be inserted into pages, posts, or templates. This allows for the same text/HTML to be inserted in multiple places and then managed from one dashboard.
Usage

Activating the plugin creates a new plugin menu option in the left sidebar of the WordPress admin dashboard titled “Shortcode Datastore”.
Clicking the “Shortcode Datastore” button will open the plugin dashboard which will display a list of the currently available shortcodes.

Clicking the “Add Shortcode” button will open a new editing window to create a shortcode.

The key selected for the new shortcode must be unique (cannot be used for another shortcode).
By default, keys are converted to lower case and spaces are replaced with underscores.
The shortcode value can be entered in the standard WordPress editor either as text or HTML. This value is what will be displayed when the shortcode is used on the site.

The shortcode table displays the existing shortcode entries.

Clicking the “Edit” button for a row will open an edit window where the shortcode value can be modified.
Clicking the “Delete” button for a row will remove the shortcode key and value.
The shortcode itself can be copied from the input field and inserted into a page, post, or template (anywhere standard WordPress shortcodes work).
Replacement variables are a way to add dynamic content to your shortcodes. Replacement variables follow the format of %NAME%, with the value being replaced at render time. The replacement variables currently supported are:

%YEAR%: Replaced with the current four character year value.

Shortcode Datastore also works with WordPress multisite installations. Shortcodes can be created and accessed from any subsite where the plugin is enabled (network activation is recommended).

文章
Filter
Apply Filters
Mastodon