简单使用 get parmalink

码

echo get_permalink();

输出

当前页面的链接,例如: http : //website.com/category/name-of-post/