[wp-hackers] bug in is_home in query filters for custom post landing pages?

Simon Blackbourn piemanek at gmail.com
Mon Jun 14 20:08:07 UTC 2010

> I don't know if its a bug as much as it is something that was never really
> discussed.  I think a lot of us that have been working with custom post
> types for a while now, knew that this was the case, but have never discussed
> if the is_home() functionality should change or if an alternate function
> should be made as a work around.  Personally, I have been testing against
> is_home() and get_query_var('post_type').
i guess there could be a knock-on effect for some plugins/themes that test
for is_home() and only expect it to be true for one page on the site. it
seems odd to me that you could have multiple pages all called 'home'.

maybe a new conditional is needed? (can't think of a name for it though!)

i also noticed that although the query filters test against it and return
true, if you test it in the template file it is false, so there is some
inconsistency there.

More information about the wp-hackers mailing list