get_date_template

函式
get_date_template ( No parameters )
返回值
  • (string) Full path to date template file.
相關
  • get_query_template()
定義位置
相關方法
get_page_templateget_paged_templateget_index_templateget_page_templatesget_tag_template
引入
1.5.0
棄用
-

get_date_template:該函式返回用於顯示當前文章或頁面的日期的模板檔案的路徑。

檢索當前或父模板中的日期模板的路徑。

模板層次和模板路徑可以通過{@see ‘$type_template_hierarchy’}和{@see ‘$type_template’}過濾。和{@see ‘$type_template’}動態鉤子,其中`$type`是’date’。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_date_template() {
return get_query_template( 'date' );
}
function get_date_template() { return get_query_template( 'date' ); }
function get_date_template() {
	return get_query_template( 'date' );
}

常見問題

FAQs
檢視更多 >