
內容簡介
此外掛提供了在你的佈景主題模板檔案中以年、月或日為分頁方式分頁文章的簡單方法。使用內建的 WordPress 分頁函數 以顯示分頁連結。
你的佈景主題很可能已經使用這些函數來進行常規分頁。如果沒有,請查看它是否與你的佈景主題的分頁一起使用,或自行添加。
要告訴 WordPress 應通過日期分頁來分頁頁面,請將 date_pagination_type 查詢變數設置為 yearly、monthly 或 daily 以自定義查詢 (WP_Query),或在 pre_get_posts 動作中設置。
有關在佈景主題中使用此外掛的示例和更多信息,請參閱 此外掛文件。
在 GitHub 上關注此外掛。
外掛標籤
開發者團隊
原文外掛簡介
This plugin provides an easy way to paginate posts by year, month or day in your theme’s template files. Use the native WordPress pagination functions to display the pagination links.
It’s likely your theme is already using these functions for normal pagination. If not, see if it works with your theme’s pagination or add them yourself.
To tell WordPress a page should be paginated by dates set the date_pagination_type query argument to yearly, monthly or daily for a custom query (WP_Query), or in the pre_get_posts action.
See the plugin documentation for examples and more information on how to use this plugin in your theme.
Follow this plugin on GitHub
