我可以从插件目录加载单页吗?
作为WP插件开发人员,我想从插件目录加载一个帖子单页。不是自定义帖子类型我想从默认的wp post类型加载。 function.php < < a href =“ https://i.sstatic.net/dslth.png” rel =“ nofollow noreferrer”> template.php
As a wp plugin developer, I want to load a post single page from my plugin directory. Not a custom post type I want to load from the default wp post type.function.php template.php
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用此挂钩检查这是否是单页,并且帖子类型为“帖子”
You can use this hook to check if this is a single page and the post type is 'post'