[wp-hackers] Difference between is_home and is_front_page
dangayle at gmail.com
Thu Jan 22 19:41:23 GMT 2009
So, for instance, if the "About" page is set as the home page in
options, is_front_page() and is_home() will both return true if I'm
looking at http://example.com
But if I'm looking at http://example.com/about, is_front_page will
return true, while is_home() will return false.
That's correct, right?
On Jan 22, 2009, at 11:31 AM, Nathan Rice wrote:
> is_home is limited in that it only returns true if you are on the
> home page, whereas is_front_page returns true even if you're using a
> specific page as your blog's homepage.
> My Website
> My Twitter
> On Thu, Jan 22, 2009 at 2:27 PM, Dan Gayle <dangayle at gmail.com> wrote:
>> Can anyone explain the difference between is_home() and
>> They appear to me, from the Codex documentation, that they do the
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers