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

Random Post Box

外掛說明

Random Post Box is a plugin that lets you place a box anywhere on your blog, with template tag or shortcode, and
load random posts with an interval and fade effect. It uses jQuery (Ajax) which means that the content is loaded without
loading the rest of the page. The timings can be set in the admin options-panel.

The template tag is <?php random_post_box(); ?>. You can also use the shortcode [random-post-box] in a page or post.

Features

  • Insert placeholder with template tag
  • Insert placeholder with shortcode
  • Set time for displaying the post
  • Set times for fade in and fade out affect
  • Exclude or include posts by category
  • Exclude posts by age (in days)
  • Use title only
  • Use post excerpt or bodycontent
  • Strip tags from body
  • Show/hide post metadata

螢幕擷圖

  • The options page
  • In use at Retrocamera blog

安裝方式

The installation is like mosts plugins:

  1. Download and extract the files
  2. Upload random-post-box folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Place <?php random_post_box(); ?> in your templates, or [random-post-box] in a page or post.
  5. Important is to style the #random-post-box-frame with CSS and set the height and width in your theme.

The install doesn’t touch the database much, it just adds one option post.

常見問題集

Is there an option to display several posts?

Not at the moment, but it might be included in future versions. It’s not recommended to use the
template tag several times on the same page.

How can I style the box?

The box is a div with id “random-post-box-frame”, and the markup inside is quite similar to the
default theme.

The box changes size when loading a new post

You need to set the size to something static with CSS, or use some means to control the size. Use the id “random-post-box-frame” as described
in the previous answer.

使用者評論

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

參與者及開發者

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

參與者

將〈Random Post Box〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.3

  • Updated to work with WP 3.0

1.0.2

  • Framing div-tag

1.0.1

  • Fix bug: Query args stopped random post to work on pages.

1.0

  • This is the first release