开发者

Wordpress homepage problem

My wordpress is not setting the front page correctly,

I have several pages, all of them static apart from a news page. I have set the home page, by going to settings->reading and then setting the static page I want to be front page.

However when I run is_home() it returns false on what I believe to be the homepage. What have I done wrong, or wh开发者_运维百科at can I do to fix it.


is_home I think only works for posts.

Try is_front_page()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜