Udders
Udders

Reputation: 6986

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 what can I do to fix it.

Upvotes: 0

Views: 125

Answers (1)

redconservatory
redconservatory

Reputation: 21934

is_home I think only works for posts.

Try is_front_page()

Upvotes: 1

Related Questions