permalink_link

函式
permalink_link ( No parameters )
相關
  • the_permalink()
定義位置
相關方法
permalink_anchorpermalink_single_rssthe_permalinkget_permalinkthe_permalink_rss
引入
0.71
棄用
1.2.0

permalink_link: 該函式用於輸出當前文章的固定連結。它需要三個引數。$post_id, $leavename, 和$sample。$post_id引數是可選的,允許你指定一個當前文章以外的文章ID。$leavename引數也是可選的,允許你指定是否在固定連結中包括文章名稱。$sample引數用於生成一個固定連結樣本。

列印迴圈中的當前文章的固定地址。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function permalink_link() {
_deprecated_function( __FUNCTION__, '1.2.0', 'the_permalink()' );
the_permalink();
}
function permalink_link() { _deprecated_function( __FUNCTION__, '1.2.0', 'the_permalink()' ); the_permalink(); }
function permalink_link() {
	_deprecated_function( __FUNCTION__, '1.2.0', 'the_permalink()' );
	the_permalink();
}

常見問題

FAQs
檢視更多 >