RSS
Home Wordpress What is the difference between is_home() and is_front_page()
formats

What is the difference between is_home() and is_front_page()

Call me ignorant, or call me an ignorant geek, but I used to think is_home() and is_front_page() was the same thing, until I experimented with them the other day and noticed they did quite different things. Let me break them down:

is_home()

This actually is the page where all your recent posts are shown. Which means if your “home” page is set to “static” then it will be false, otherwise it will be true.

is_front_page()

This will return true if it is the root parent page – which I initially thought was the “home” page – any internal or children pages will return false.

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is the official blog of HSMoore Ltd.

© Site by HSMoore Ltd