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

WP-Strings

外掛說明

Have you ever wanted to have string input fields where you can input any string, and then call this from your templates? If so this is the plugin for you! WP-Strings allows you to input strings, that you can then call as many times as you want within your wordpress template.

If you update one of these strings from within the admin section, the string will change accross all of your templates.

For example, if you had a phone number that you used in multipe locations across your theme, but knew it might change, you can put this into the WP-Strings admin panel. You can then reference the telephone number from your template in the required locations and know in confidence that when you change the number in the backend, the telephone number will change across the site.

螢幕擷圖

  • Here’s a screenshot a list of all custom strings that are stored in the database
  • Here’s a screenshot of the custom strings option

安裝方式

  1. Upload the WP-Strings folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place ‘string_option();’ in your templates
  4. string_option() takes two arguments, firstly the name of the String you want to output (not case sensative). Secondly the echo value, default is 1(echo), 0 will just return the value

If you wish to use a string from within the content, you can use the shortcode [string s=””], within the ‘s’ attribute add in the name of your string you require.

使用者評論

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

參與者及開發者

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

參與者

將〈WP-Strings〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.1

  • First itteration of WP-Strings
  • Added custom strings
  • Added support to delete custom strings

0.2

  • Added shortcode functionality