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

Related Posts via Categories

外掛說明

This Plugin will display the related posts list via categories.
It can automatically display the related posts list after the content of any single post of selected post types by options.
There are many options for the display, order, exclusion and post-type selection.
This plugin works when viewing a post of selected post types by options.
This plugin requires jQuery 1.6 or higher.

Official Page

Related Posts via Categories – Options

‘Settings’ » ‘Related Posts via Categories’

Display

  • Auto display
    • This option automatically displays related posts after the content on the single post page.
    • If this option is off, you will need to manually insert display_related_posts_via_categories() into your theme files.
  • Maximum number of related posts
    • If you do not enter anything: 10
  • Related posts title
    • For example: Related Posts
  • Before related posts title and related posts
    • For example: <div id="related-posts-via-categories">
  • After related posts title and related posts
    • For example: </div>
  • Before related posts title
    • For example: <h2 id="related-posts-via-categories-title">
  • After related posts title
    • For example: </h2>
  • Before related posts
    • For example: <ul id="related-posts-via-categories-list">
  • After related posts
    • For example: </ul>
  • Before each related post
    • For example: <li class="related-posts-via-categories-item">
  • After each related post
    • For example: </li>

Order

  • Order By
    • Related Scores : High ( Speedy )
    • Related Scores : High / Date Published : New ( Default setting )
    • Related Scores : High / Date Published : Old
    • Related Scores : Low / Date Published : New
    • Related Scores : Low / Date Published : Old
    • Related Scores : High / Date Modified : New
    • Related Scores : High / Date Modified : Old
    • Related Scores : Low / Date Modified : New
    • Related Scores : Low / Date Modified : Old
    • Date Published : New
    • Date Published : Old
    • Date Modified : New
    • Date Modified : Old

Exclude

  • Exclude (Posts)
    • The IDs of any posts you want to exclude, separated by commas.
  • Exclude (Categories)
    • Select checkboxes of any categories you want to exclude.

Post types

  • Select checkboxes of any post types you want to include in the list of Related Posts and display the list.
  • Displays checkboxes of them when there is any custom post types.

Localization

  • Japanese (ja) – alphasis (plugin author)
  • Persian (fa_IR) – Omid Sheerkavand
  • Armenian (hy_AM) – Artak Kolyan
  • Current release supports English, Persian, Armenian and Japanese.

螢幕擷圖

  • Display ( If the user is not logged in. )
  • Display ( If the user is logged in. )
  • Settings » Related Posts via Categories
  • Related Posts via Categories - Options » Display
  • Related Posts via Categories - Options » Order
  • Related Posts via Categories - Options » Exclude
  • Related Posts via Categories - Options » Post types
  • Related Posts via Categories - Options » Promotion

安裝方式

  1. Upload related-posts-via-categories to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

常見問題集

This plugin is free?

使用者評論

2016 年 9 月 3 日
I had a case when the site had more than 30,000 posts. Your plugin started doing a lot of queries to the database and the database on the server simply displays connection error.
2016 年 9 月 3 日
I wanted a widget in the sidebar, so I'm not using this. However, it does work on a normal WP 4.4.2 install.
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Related Posts via Categories〉的開發相關工作。

參與者

將〈Related Posts via Categories〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.1.2

  • Tested up to: WordPress 3.5.2

2.1.1

  • Added Armenian ( hy_AM ) language files.
  • Tested up to: WordPress 3.4.2

2.1.0

  • Changed the total source code.
  • Came to require jQuery 1.6 or higher.
  • Added post-type selection option.

1.1.1

  • PHP code was changed to more strict.

1.1.0

  • Added a CSS class or ID.
    • For example: <ul id="related-posts-via-categories-list">
  • This plugin came to require jQuery.

1.0.2

  • Added Persian ( fa_IR ) language files.
  • Compatible up to: WordPress 3.2.1

1.0.1

  • PHP code was changed to more strict.
  • Compatible up to: WordPress 3.1

1.0.0

  • Initial release