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()
精彩评论