is_home

is_home ( No parameters )

Uses:
  • $wp_query
See:
Returns:
  • (bool) True if blog view homepage.
Defined at:

Description

Is the query 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".

Related Functions

is_time, list_meta, is_author, is_attachment, display_theme

Top Google Results

User discussions

wpseek mobile