獲取沒有帖子名稱的連結

碼

echo get_permalink( 44 , false );

輸出

帖子 ID:44 的連結沒有帖子的名稱,例如: http : //website.com/category/%postname%/