
內容簡介
重要提示:支援已經轉移到 ZATZLabs 網站,不再提供於 WordPress.org 論壇。如需開發者快速回覆,請開啟一個支援請求。
除了 WordPress 本身提供的頁面和文章之外,簡碼還可以添加到文章摘要、頁面標題、文章標題、小工具、小工具標題、自訂欄位、網站標題和說明等。這使得簡碼可以用於側邊欄、選單、頁首、頁尾甚至大多數瀏覽器標題列中出現的 HTML <title> 元素。
設定頁面包括選框,用於選擇何處可能出現簡碼:
在文章摘要中,包括手動和自動創建的摘要
在頁面和文章標題中
透過 <title> 在瀏覽器標題列中
在側邊欄、選單、頁首、頁尾等使用的小工具中
在小工具標題中
在網站標題、說明和其他 bloginfo 選項中
在文章或頁面自訂欄位中
優先級是每個選框旁的進階設置,用於控制與每個「何處?」設置相關聯的 WordPress 過濾器的時間。這僅是為了解決與使用相同 WordPress 過濾器(「hook」)的其他主題和外掛發生衝突的問題。
預設警告功能,可以在設定頁面上禁用,當啟用此外掛但未選擇任何「何處?」選框時(除了必須的 In Pages 和 In Posts 設置),它會在每個管理面板的頂部顯示一條消息。
此外掛支援所有簡碼,無論您使用的是 WordPress 本身定義的簡碼,例如 、、、 或 ,還是 Jetpack 簡碼嵌入、您的活動佈景主題、其他插件(例如當前年份和版權簡碼)或自己編寫的插件並使用 add_shortcode() 函數,甚至是使用簡碼創建插件,例如 Shortcode Exec PHP。
未來的版本將根據此外掛使用者的需求,包括更多可以使用簡碼的 WordPress 網站區域。
沒有嘗試讓簡碼在管理面板中顯示值。這是WordPress的默認行為,更改它可能會產生意想不到的(負面)影響。
插件開發人員可能會對表驅動設計感興趣。這個設計在20世紀80年代很受歡迎,在此插件中,它被用於簡化 WordPress 過濾器的使用。涉及的表是二維全局數組 $jr_saoe_filters。
此外掛是為滿足Current Year and Copyright Shortcodes插件的一位使用者的要求而創建的,希望可以將這些簡碼用於頁面標題中。
接管通知
此外掛最近被 David Gewirtz 接管,將繼續提供支援和更新。歡迎訪問David 的 Lab Notes了解更多詳細信息並註冊電子郵件新聞更新。
特別感謝 Jon ‘jonradio’ Pearkins 創建此外掛並使接管成為可能。
外掛標籤
開發者團隊
② 後台搜尋「Shortcodes Anywhere or Everywhere」→ 直接安裝(推薦)
原文外掛簡介
Shortcodes can be added to Post Excerpts, Page Titles, Post Titles, Widgets, Widget Titles, Custom Fields, Site Title and Description, not just Pages and Posts as is already provided by WordPress itself. This allows Shortcodes to be used in Sidebars, Menus, Headers, Footers and even the HTML
A Settings page includes checkboxes to select where Shortcodes might appear:
In Post Excerpts, both manual and automatically-created Excerpts
In Page and Post Titles
In Browser Title Bar via
In Widgets used in Sidebars, Menus, Headers, Footers, etc.
In Widget Titles
In Site Title, Description and other bloginfo options
In Page or Post Custom Fields
Priority is an Advanced Setting beside each checkbox that controls the timing of the WordPress Filter associated with each Where? setting. This is provided solely to address conflicts with other themes and plugins that use the same WordPress Filter (“hook”).
A default Warning feature, which can be disabled on the Settings page, displays a message at the top of every Admin panel if the plugin is Activated but doing nothing because no Where? checkboxes are selected (other than the mandatory In Pages and In Posts settings).
All Shortcodes are supported by this plugin, no matter whether you are using Shortcodes defined by:
WordPress itself, such as , , , or
Jetpack Shortcode Embeds
Your Active Theme
Another Plugin, for example,
Current Year and Copyright Shortcodes
Writing your own Plugin and using the add_shortcode() function
Using a Shortcode creation Plugin, for example, Shortcode Exec PHP
Future versions will include more areas of the WordPress web site where Shortcodes may be used, based on the needs of users of this Plugin.
No attempt has been made to allow Shortcodes to be used to display values in Admin panels. This is the default WordPress behaviour, and changing it may have unintended (negative) consequences.
Plugin Developers may find the Table-Driven Design of interest. This was a popular concept in the 1980s and was used in this plugin to simplify the use of WordPress Filters. The two-dimensional global array $jr_saoe_filters is the Table involved.
This plugin was created to satisfy a request from a user of the Current Year and Copyright Shortcodes plugin to use these Shortcodes in a Page Title.
