wordpress获取单独某篇文章的链接

wordpress获取单篇文章的链接,可以通过the_permalink()这个函数来获取。
比如想要获取文章id等于29的的文章链接,就可以用如下代码调用

<?php the_permalink(29); ?>

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: