admin管理员组文章数量:1421000
First of all, sorry if this is a duplicated question... But I haven't found it in the same terms as I'm asking.
I'm surprised because when checking the conditional is_page()
in a function executed through my functions.php
file, it returns false when evaluated in the page for posts page.
I was so surprised, that I have checked twice in the DB if WordPress has changed the post_type for this page (lol), but obviously, it is still a page, so... why the conditional is_page()
is returning false if it is indeed a page?
版权声明:本文标题:conditional tags - Why is_page() returns false when visiting the static page declared as "posts page" 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745312421a2652995.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论