I have set my front page set to be a static front page, "Home," and my Posts page is set to my "News" page.
When on my News page, is_home()
returns 1
as expected but is_archive()
returns 0
. I would expect that it would return 1
also. The WP doc for is_archive()
doesn't make it clearer for me. It reads,
checks if any type of Archive page is being displayed. An Archive is a Category, Tag, Author or a Date based pages.
I would expect that to be true. Something isn't connecting for me.
What is the difference between is_home()
and is_archive()
?