WP_Query::is_home()publicWP 3.1.0

Determines whether the query is for the blog homepage.

This is the page which shows the time based blog content of your site.

Depends on the site's "Front page displays" Reading Settings 'show_on_front' and 'page_for_posts'.

If you set a static page for the front page of your site, this function will return true only on the page you set as the "Posts page".

Method of the class: WP_Query{}

No Hooks.


true|false. Whether the query is for the blog homepage.


global $wp_query;



Since 3.1.0 Introduced.

WP_Query::is_home() code WP 6.5.2

public function is_home() {
	return (bool) $this->is_home;