[WordPress] 外掛分享: Switch Last Posts Widget

首頁外掛目錄 › Switch Last Posts Widget
10+
安裝啟用
尚無評分
4481 天前
最後更新
問題解決
WordPress 3.6.1+ v1.1 上架:2013-10-04

內容簡介

這個外掛基於原生的「最新文章」小工具,它會根據當前文章(或者分類)的主要類別,顯示最新的文章。

您需要定義一個主要和次要的分類。
預設情況下,主要分類用於顯示最新的文章。如果訪客目前不在次要(或子分類)中,那麼就會使用主要分類。

當您有兩個不同的分類(沒有相關主題)並且您想要顯示另一個分類的最新文章,而不是顯示所有文章(或從當前分類)時,此小工具就很有用。

設定

參數與原生小工具相同,但增加了:

主要分類ID;
次要分類ID。

您需要輸入各自的分類ID(每個欄位只能輸入一個)。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Switch Last Posts Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Based on the native “Recent Posts” widget, this one displays the recent posts accord the root category of the current post (or category).
You will have to define a main and secondary category.
By default, the main one is used to display the latest posts. If visitors are not currently in the secondary (or sub-categories), then it is this one which is used.
This widget is interresting when you have 2 different categories (with no linked subject) and you want to display the latest posts of the other category, rather than display all (or from the current one).
Configuration
The parameters are the same as the native widget, with the addition of :

Main category ID ;
Secondary category ID.

You will have to enter categories ID (only one per field).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon