指定帖子以获取链接

码

echo get_permalink( 44 );

输出

帖子 ID:44 的链接,例如: http : //website.com/category/name-of-post/