is_home()

Determines if the query is for the blog homepage.


25 related functions found for: is_home

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsexist, home, is, query-php, wp-includes
wp-parser-packageQuery, WordPress
wp-parser-source-filewp-includes/query.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • exist
  • home
  • is
  • Query
  • query-php
  • wp-includes
  • wp-includes/query.php
  • query

Top ↑

Description Description

The blog homepage is the page that shows the time-based blog content of the site.

is_home() is dependent on the site’s "Front page displays" Reading Settings ‘show_on_front’ and ‘page_for_posts’.

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


Top ↑

Return Return

(bool) True if blog view homepage, otherwise false.


Top ↑

Source Source

File: wp-includes/query.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.