[WordPress] 外掛分享: Display Posts – Date View

首頁外掛目錄 › Display Posts – Date View
WordPress 外掛 Display Posts – Date View 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
300+
安裝啟用
★★★★★
5/5 分(3 則評價)
2501 天前
最後更新
問題解決
WordPress 3.0+ v1.0.0 上架:2019-01-08

內容簡介

此外掛可擴充Display Posts功能,讓你可以按月份或年份分類你的內容。你可以使用所有Display Posts的參數來自訂查詢。

月份列表

[display-posts display_by_month="true" posts_per_page="999" title="Posts by Month"]

使用display_by_month參數來按月份分類。若要列出所有內容,請使用較高的posts_per_page,例如 999。你也可以加入一個可選的title,顯示於列表上方。

年份列表

[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"]

使用display_by_month參數來按年份分類。若要列出所有內容,請使用較高的posts_per_page,例如 999。你也可以加入一個可選的title,顯示於列表上方。

篩選器

如果你是開發人員,你可以使用以下篩選器來自訂標記:

display_posts_date_view_heading_tag – 用於日期標題的標題標籤。默認為h4。
display_posts_date_view_heading_class – 添加到標題標籤的類別。默認為.display-posts-date。
display_posts_date_view_month_format – 用於月份標題的日期格式。默認為‘F Y’。
display_posts_date_view_year_format – 用於年份標題的日期格式。默認為‘Y’。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin extends Display Posts by letting you break your content down by month or year. You can use all of the Display Posts parameters to customize the query.
Month Listing
[display-posts display_by_month="true" posts_per_page="999" title="Posts by Month"]

Use the display_by_month parameter to break it down by month. To list all your content, use a high posts_per_page, like 999. You can also add an optional title to appear above the listing.
Year Listing
[display-posts display_by_year="true" posts_per_page="999" title"Posts by Year"]

Use the display_by_month parameter to break it down by year. To list all your content, use a high posts_per_page, like 999. You can also add an optional title to appear above the listing.
Filters
If you’re a developer, you can use the following filters to customize the markup:

display_posts_date_view_heading_tag – The heading tag used for date headings. Default is h4.
display_posts_date_view_heading_class – The class added to the heading tag. Default is .display-posts-date.
display_posts_date_view_month_format – The date format used for month headings. Default is ‘F Y’.
display_posts_date_view_year_format – The date format used for year headings. Default is ‘Y’.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon