url_to_postid 通过链接地址获取文章ID

知更鸟
知更鸟
站长
2387
文章
0
粉丝
WordPress 开发评论147阅读模式

如想通过链接地址获取文章ID,可以用:

url_to_postid( string $url )

比如:

echo url_to_postid( 'https://zmingcx.com/url_to_postid.html' )

本站文章大部分为原创,用于个人学习记录,可能对您有所帮助,仅供参考!

weinxin
我的微信
微信号已复制
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
 
知更鸟
匿名

发表评论

匿名网友

拖动滑块以完成验证