the_author_posts_link

函式
the_author_posts_link ( $deprecated = '' )
引數
  • (string) $deprecated Unused.
    Required:
    Default: (empty)
定義位置
相關方法
get_the_author_posts_linkthe_author_poststhe_author_linkget_author_rss_linkget_the_author_posts
引入
1.2.0
棄用
-

the_author_posts_link: 此函式顯示指向當前文章的作者或指定使用者的作者檔案頁的連結,以及作者發表的文章數量。

顯示一個HTML連結到當前文章作者的頁面。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function the_author_posts_link( $deprecated = '' ) {
if ( ! empty( $deprecated ) ) {
_deprecated_argument( __FUNCTION__, '2.1.0' );
}
echo get_the_author_posts_link();
}
function the_author_posts_link( $deprecated = '' ) { if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '2.1.0' ); } echo get_the_author_posts_link(); }
function the_author_posts_link( $deprecated = '' ) {
	if ( ! empty( $deprecated ) ) {
		_deprecated_argument( __FUNCTION__, '2.1.0' );
	}
	echo get_the_author_posts_link();
}

常見問題

FAQs
檢視更多 >