the_post_navigation

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

post_navigation是一個WordPress功能,它顯示當前文章類別中上一篇和下一篇文章的連結。它可以為使用者提供輕鬆的導航,以閱讀系列文章的上一篇或下一篇。

在適用的情況下,顯示到下一篇/上一篇文章的導航。

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

常見問題

FAQs
檢視更多 >