the_posts_navigation

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

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

顯示到下一組/上一組文章的導航,如果適用的話。

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

常見問題

FAQs
檢視更多 >