the_permalink

过滤钩子
apply_filters( 'the_permalink', get_permalink()
定义位置
  • wp-content/themes/twentythirteen/functions.php , line 676
相关勾子
the_permalink_rssterm_linkget_sample_permalinkthe_shortlinkthe_feed_link
相关方法
the_permalinkget_the_permalinkthe_permalink_rssget_permalinkpost_permalinkget_sample_permalink
引入
Twenty Thirteen 1.0
弃用
-

the_permalink – 这是一个WordPress函数,显示一个文章的永久URL。the_permalink from the post’s permanent URL, which is a unique and permanent link to the post that does not change over time. 这个函数可以用来在自定义模板或小工具中添加一个文章的永久URL的链接。

打印所附的图片,并附上下一张所附图片的链接。

return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 14:09:47

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: