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

Random Text

外掛說明

RandomText is a handy WordPress plugin that allows you to save, edit and delete categorized text, and inject random/rotated text by category into the sidebar (via widget) or page body (via template tags). The sidebar widget allows you to set an optional Title, and text header and footer. You could say RandomText picks up where the Text widget left off. Whether you want to display random/rotated trivia, quotes, helpful hints, featured articles, or snippets of html, you can do it all easily with RandomText.

螢幕擷圖

  • Sidebar widget options
  • Text management page

安裝方式

IMPORTANT: This plugin uses the WP_Widget class introduced in WordPress v2.8 and will not work with earlier versions of WordPress.

  1. Upload randomtext.php and randomtext_admin.php to the /wp-content/plugins/ directory of your WordPress installation
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The Random Text widget can now be configured and used from the Appearance -> Widgets menu
  4. Text entries can be managed via from the Settings -> Random Text menu

Note: During installation, Random Text creates a new database table to store the entries by category – you should see two test records after installation by clicking on the Settings -> Random Text menu.

常見問題集

Installation Instructions

IMPORTANT: This plugin uses the WP_Widget class introduced in WordPress v2.8 and will not work with earlier versions of WordPress.

  1. Upload randomtext.php and randomtext_admin.php to the /wp-content/plugins/ directory of your WordPress installation
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The Random Text widget can now be configured and used from the Appearance -> Widgets menu
  4. Text entries can be managed via from the Settings -> Random Text menu

Note: During installation, Random Text creates a new database table to store the entries by category – you should see two test records after installation by clicking on the Settings -> Random Text menu.

Can I use shortcodes?

Yes, you can use [randomtext] or [randomtext category=”funny”] or even [randomtext category=”funny” random=”1″].

What about template tags?

You can use something like this, where ‘category’ is the group you wish to select items from.
< ?php randomtext(‘category’); ?>

使用者評論

2017 年 1 月 8 日
This plugin has many potential uses, including the creation of dynamic boxes, or the ability to change the content on multiple pages simultaneously.
2016 年 9 月 3 日
this plugin is still awesome, i hope could be refresh again, but still very useful
閱讀全部 19 則使用者評論

參與者及開發者

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

參與者

將 Random Text 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

v0.3.0 2013-03-18

  • Fixed issues highlighted by WP_DEBUG.
  • Added Settings link to Plugins page.
  • Added cleanup on Uninstall.
  • Tested up to WP v3.5.1.

v0.2.9 2011-11-03

  • Fixed pagination issues on admin page (again).

v0.2.8 2011-06-15

  • Fixed pagination issues on admin page.

v0.2.7 2011-06-05

  • Fixed numerous issues highlighted by debugging mode.

v0.2.6 2010-08-05

  • Fixed shortcode recursion

v0.2.5 2010-08-04

  • Added support for shortcodes in text field
  • Fixed Admin unicode truncation issue

v0.2.4 2009-10-26

  • Added shortcode support

v0.2.3 2009-09-22

  • Added Bulk Insert option
  • Improved handling of “No Category” items

v0.2.2 2009-08-23

  • Added record id check before timestamp update

v0.2.1 2009-08-22

  • Added database table check/error to admin page

v0.2 2009-08-22

  • Added random/rotation option
  • Added screenshots

v0.1.4 2009-08-19

  • Fixed admin path bug

v0.1.3 2009-08-18

  • Fixed Pre-text/Post-text bug

v0.1.2 2009-08-16

  • Fixed editing issues
  • Minor correction to readme.txt

v0.1.1 2009-08-14

  • Minor corrections to readme.txt

v0.1 2009-08-11

  • Initial release