I’m having an odd issue, although I can understand why it works like this I do need to find a way around it.
I have used the the request filter to modify the query for the home/index page to select for a post type other than ‘post’
The result of this is that is_home() is returning false in the index.php template. If I disable the filter then is_home() goes back to returning true.
Anyway to force the is_home() to return true? or another way to approach this?
Thanks, Stewart.
From look at the code the following logic happens in your case:
is_post_type_archive
gets set totrue
is_archive
gets set totrue
is_home
gets set tofalse
since it is seen as archiveI am not sure about all implications without extensive testing, but probably approaches are either:
is_home
totrue
under those circumstancesis_home()
and use different conditional