the_comment

函式
the_comment ( No parameters )
定義位置
相關方法
have_commentscheck_commentthe_contentget_commentedit_comment
引入
2.2.0
棄用
-

the_comment – 這個函式用來顯示一個單獨的評論。它接收一個評論物件作為引數,並輸出該評論的HTML標記。

在評論迴圈中遍歷評論索引。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function the_comment() {
global $wp_query;
if ( ! isset( $wp_query ) ) {
return;
}
$wp_query->the_comment();
}
function the_comment() { global $wp_query; if ( ! isset( $wp_query ) ) { return; } $wp_query->the_comment(); }
function the_comment() {
	global $wp_query;

	if ( ! isset( $wp_query ) ) {
		return;
	}

	$wp_query->the_comment();
}

常見問題

FAQs
檢視更多 >