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

Simple Random Posts Shortcode

外掛說明

A simple plugin for rendering random post previews in a list view using shortcode.
Supports various options to customize output to your needs.

Supported shortcode options

  1. header: , whether to output header text (default=)
  2. show_featured_image: , whether to output featured post image (default=TRUE)
  3. featured_image_height: , height of featured image in px (default=100)
  4. preview_text_chars: , amount of chars to be displayed for preview text (default=200)
  5. container_css_class: , CSS class of outer container (default=articles-preview-container)
  6. container_article_css_class: , CSS class of article containe (default=article-preview)
  7. append_css_clear: , whether to append a CSS clear container (default=TRUE)
  8. container_left_width: , px or % (default=65%)
  9. container_right_width: , px or % (default=30%)

安裝方式

  1. Upload and extract simple-random-posts-shortcode.zip to your plugins directory
  2. Activate the plugin through the Plugins menu in WordPress

使用者評論

2017 年 2 月 8 日
works as described. please add additional options to specify how list is rendered. Thanks!
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

將〈Simple Random Posts Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.1

  • Initial public release.

0.2

  • added option to show featured image for posts, [‘show_featured_image’]
  • added option to specify featured image height, [‘featured_image_height’]
  • added option to specify char count for preview text, [‘preview_text_chars’]
  • changed HTML to floating divs for better alignment
  • added option to specify CSS class for outer div container, [‘container_css_class’]

0.3

  • added option to append CSS clear container, [‘append_css_clear’]
  • added option to specify width of left container, [‘container_left_width’]
  • added option to specify width of right container, [‘container_right_width’]
  • added option to specify CSS class for article container, [‘container_article_css_class’]