get_paged_template

函式
get_paged_template ( No parameters )
返回值
  • (string) Full path to paged template file.
定義位置
相關方法
get_page_templateget_page_templatesget_tag_templateget_page_template_slugget_front_page_template
引入
1.5.0
棄用
4.7.0

get_paged_template函式是一個WordPress函式,用於檢索用於分頁存檔的模板檔案: 這個函式不接受任何引數: 該函式首先檢查當前的分頁存檔是否使用自定義模板,如果是,則返回該模板的檔案路徑。如果分頁存檔沒有使用自定義模板,則返回一個空字串。

檢索當前或父模板中的分頁模板路徑。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_paged_template() {
_deprecated_function( __FUNCTION__, '4.7.0' );
return get_query_template( 'paged' );
}
function get_paged_template() { _deprecated_function( __FUNCTION__, '4.7.0' ); return get_query_template( 'paged' ); }
function get_paged_template() {
	_deprecated_function( __FUNCTION__, '4.7.0' );

	return get_query_template( 'paged' );
}

常見問題

FAQs
檢視更多 >