Title: is_home does not function
Last modified: August 18, 2016

---

# is_home does not function

 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/is_home-does-not-function/)
 * WP version: 1.5.3-beta 1
 * Problem:
    the is_home() function always return TRUE either at main page or previous
   page(e.g: domain.com/blog/page/2/ )
 * Sample Code on index.php:
    `<div id="content" class="narrowcolumn"> <?php if (
   is_home()) { ?> this is home. <?php } ?> <?php if (have_posts()) : ?>
 * Expected result:
    Show “this is home” on main page, but does not show on previous
   pages.
 * Result getting:
    It shows “this is home” on main page AND other pages.
 * Any idea? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/is_home-does-not-function/#post-359544)
 * Try `<?php if (is_home() && ($paged <= "1")) { ?>` instead.
    [http://wordpress.org/support/topic/61041](http://wordpress.org/support/topic/61041)
 *  [syncbox](https://wordpress.org/support/users/syncbox/)
 * (@syncbox)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/is_home-does-not-function/#post-359545)
 * do you have a home.php file in your theme directory?
 *  Thread Starter [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/is_home-does-not-function/#post-359564)
 * Thank you, IanD. That’s the one!
    (apparently I missed the thread in my search)
 * No, syncbox. I do not have a home.php file.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘is_home does not function’ is closed to new replies.

## Tags

 * [is_home](https://wordpress.org/support/topic-tag/is_home/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/is_home-does-not-function/#post-359564)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
