[WordPress] 外掛分享: Posts per Cat

首頁外掛目錄 › Posts per Cat
WordPress 外掛 Posts per Cat 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(8 則評價)
311 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.5.0 上架:2009-03-03

內容簡介

Posts per Cat 是一個簡單的外掛程式,可以從部落格資料庫中抓取所有或選定的類別,然後列出每個類別中最新的 N 篇文章,可以按 1-5 個欄呈現。

重要通知:

Posts-per-Cat 外掛已不維護,這意味著不會再有進一步的更新或免費的外掛支援。

如果您有興趣取得此外掛,請聯繫我們。

特色:

- 可選擇每行顯示多少個欄位(一列、兩列、三列、四列或五列)。
- 可定義每個類別中要顯示的文章標題數量。
- 可定義要排除的類別 ID。
- 可定義要包含的類別 ID。
- 可切換顯示子類別。
- 可按類別 ID、標題或自訂順序排序。
- 可切換顯示置頂文章。
- 可切換使用自訂列表 CSS。
- 可優化 SEO 的永久連結 URI。
- 可整合至模板檔案,使用縮略碼 [ppc] 和選項或小工具。
- 可做本地化準備。
- 單個文章行的樣板系統,由用戶在純 HTML 中定義,用帖子元素的宏關鍵字。

縮略碼選項:

您可以使用 [ppc] 縮略碼,以下是選項(在縮略碼中設定選項以覆蓋上面的默認設置):

- `columns=2`:列數(1、2、3、4 或 5)。
- `minh=0`:方塊的最小高度(以像素為單位,設置為 0 以使用自動)。
- `include=category_ID's`:包含類別(逗號分隔的類別 ID)。
- `exclude=category_ID's`:排除類別(逗號分隔的類別 ID's)。
- `parent=0`:僅顯示一級類別(0 或 1)。
- `order=ID`:按(ID、名稱或自定義)順序排序類別。
- `catonly=0`:僅顯示類別存檔頁面中的文章(0 或 1)。
- `noctlink=0`:不連結類別名稱(0 或 1)。
- `more=0`:獨立的存檔鏈接(0 或 1)。
- `moretxt="More from"`:存檔鏈接前綴。
- `posts=5`:每個類別區塊中標題的數量。
- `porderby=date`:按日期、修改日期、標題、姓名、ID 或作者排序文章。
- `porder=DESC`:降序或升序排列排序。
- `titlelen=34`:標題長度(以字符為單位)。
- `shorten=0`:縮短標題(0 或 1)。
- `commnum=0`:顯示評論數(0 或 1)。
- `nosticky=0`:隱藏置頂文章(0 或 1)。
- `excerpts=none`:顯示節錄(無、第一個或所有)。
- `content=0`:使用帖子內容作為節錄(0 或 1)。
- `excleng=100`:節錄長度。
- `thumb=0`:在節錄中顯示縮略圖(0 或 1)。
- `tsize=60`:縮略圖大小,設置縮略圖寬度的尺寸(高度相同);或使用格式 WIDTHxHEIGHT 設置尺寸(例如 220×123);或使用預定義的自定義圖像大小(縮略圖、小圖、中圖、大圖、完整或自定義)。

自從 1.4.0 版本以來,您可以使用模板來顯示自定義格式的輸出,例如:

[ppc]

%title_short%

(%comments_num% comments)

%date% @ %time%

外掛標籤

開發者團隊

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

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

原文外掛簡介

Posts per Cat is a simple plugin that grab all or only selected categories from blog database, and then list recent N posts from each category, organised in 1-5 columns.
If you are interested to acquisition of plugin, please contact us.
Features

choose how many boxes per row will be displayed (one, two, three, four or five)
define number of post titles to display per category
define category ID’s to exclude
define category ID’s to include
toggle displaying of child categories
ordering boxes by category ID, title or custom (manually entered category ID’s as include list)
toggle displaying sticky posts
toggle usage of custom list CSS
SEO optimized permalink URI’s
integrate to template file, use shortcode [ppc] with options or widget
ready for localisation
template system for single post line in box defined by user in plain HTML with macro keywords for post elements

Shortcode options
You can use shortcode [ppc], with options below (set option in shortcode to override default settings above):

columns=2 – Number of columns (1, 2, 3, 4 or 5)
minh=0 – Minimal height of box (in px, set to 0 for auto)
include=category_ID's – Include category (comma separated category ID’s)
exclude=category_ID's – Exclude category (comma separated category ID’s)
parent=0 – Only top level categories (0 or 1)
order=ID – Order categories by (ID, name or custom)
catonly=0 – Only from displayed category archive (0 or 1)
noctlink=0 – Do not link category name (0 or 1)
more=0 – Standalone link to archives (0 or 1)
moretxt="More from" – Archive link prefix
posts=5 – Number of headlines per category block
porderby=date – Order posts by date, modified, title, name, ID, author
porder=DESC – Order sorting DESC or ASC
titlelen=34 – Headline length (in characters)
shorten=0 – Shorten headline (0 or 1)
commnum=0 – Display comment number (0 or 1)
nosticky=0 – Hide sticky posts (0 or 1)
excerpts=none – Show excerpt (none, first or all)
content=0 – Use post content as excerpt (0 or 1)
excleng=100 – Excerpt length
thumb=0 – Show thumbnail with excerpt (0 or 1)
tsize=60 – Thumbnail size, set size in px for thumbnail width (height is same); or set in format WIDTHxHEIGHT (example 220×123); or set predefined custom image size (thumbnail, small, medium, large, full or cusotm defined)

Since version 1.4.0 you can use template to display custom formatted output (post line element). Example:
[ppc]
%title_short%
(%comments_num% comments)
%date% @ %time%
%author_displayname%
%thumbnail%
%excerpt% [read more]
[/ppc]

Supported macros:

%title%
%title_short%
%post_content%
%excerpt%
%thumbnail%
%link%
%comments_num%
%comments_link%
%comments_form_link%
%datetime%
%date%
%time%
%author_displayname%
%author_firstname%
%author_lastname%
%author_posts_url%

延伸相關外掛

文章
Filter
Apply Filters
Mastodon