the_posts_pagination

函式
the_posts_pagination ( $args = array() )
引數
  • (array) $args Optional. See get_the_posts_pagination() for available arguments. Default empty array.
    Required:
    Default: array()
定義位置
相關方法
get_the_posts_paginationthe_comments_paginationthe_posts_navigationthe_post_navigationget_the_comments_pagination
引入
4.1.0
棄用
-

posts_pagination是一個WordPress函式,用於顯示當前查詢的分頁連結。它可用於為使用者提供輕鬆的導航以閱讀上一組或下一組文章,並允許自定義分頁輸出。

在適用的情況下,顯示一個分頁導航到下一組/上一組文章。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function the_posts_pagination( $args = array() ) {
echo get_the_posts_pagination( $args );
}
function the_posts_pagination( $args = array() ) { echo get_the_posts_pagination( $args ); }
function the_posts_pagination( $args = array() ) {
	echo get_the_posts_pagination( $args );
}

常見問題

FAQs
檢視更多 >