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

Arbitrary Shortcodes

外掛說明

Replaces Shortcodes with Homepage Custom Fields.

This plugin allows you to write your page content like this:
“Contact our company, [company_name], by email at: [email].”

Text with these shortcodes can be defined on any number of pages throughout your site.

The values of all of the shortcodes are controlled in a single location: the Custom Fields of your blog’s home page. For the above example, there would be Custom Fields on the home page called “company_name” and “email” with the values, respectively, of “Example Company Name” and “info@example.com”.

This plugin requires that you have WordPress set to show a static Page on the home page under Settings->Reading and “Front page”.

So then, for all the custom fields entered on the home page, this plugin looks for shortcodes (in all pages) and replaces each of their values, upon output, with the relevant custom field value.

This is useful for if you want to fill many pages with text that includes an arbitrary number of shortcodes or template text and have all the values can be replaced in one place.

-By Phil Freo

安裝方式

This plugin requires that you have WordPress set to show a static Page on the home page under Settings->Reading and “Front page”.

  1. Upload the arbitrary-shortcodes/ folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Fill your content on any page(s) on your site with the desired arbitrary shortcodes
  4. For each shortcode you would like to define, create a custom field (and value) on the page that is shown as the “home page” for the site.

常見問題集

None

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Arbitrary Shortcodes〉的開發相關工作。

參與者

將〈Arbitrary Shortcodes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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