the_id

函式
the_id ( No parameters )
定義位置
相關方法
the_guidthe_widgetget_the_idthe_timethe_date
引入
0.71
棄用
-

the_id – 這個函式用來輸出當前文章或頁面的ID。

顯示WordPress迴圈中當前專案的ID。

function the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
	echo get_the_ID();
}

常見問題

FAQs
檢視更多 >