admin管理员组文章数量:1415467
This is my permalink structure
/%post_id%-%postname%/
/
/
How can I check "test-post" exist or not? I'm using wpml for multi language so not able to check using slug.
Post ID is causing issues while checking. Is there any solution for this?
When using url_to_postid(), this format is working /, but not this
/
For example:
url_to_postid('/');
any solution to handle with post id?
url_to_postid('/[%post_id%-]test-post/');
url_to_postid('/[\d\-]+test-post/');
Thanks in advance.
本文标签: How to check a post exist when the permalink has post id in it
版权声明:本文标题:How to check a post exist when the permalink has post id in it? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745152650a2644988.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论