Support » Themes and Templates » is_home in 2.1 not working

  • I have this on my blogs but it ignores it now:

    <?php if ( is_home() ) { ?>
    <meta name="description" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />
    <?php } ?>

    What’s the issue?

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

any help?

re Kafkaesqui:
No I don’t think I have that query_posts() in a template but after reading the codex I wasn’t sure how to use it. is_home used to work but now it doesn’t.

The only thing that might be different is that I have set one static page to be the home page.

Ryan Boren


WordPress Dev

There is some debate over what is_home() should return if you have set a static page to be the front page.

I seem to have the same problem. Since I upgraded to 2.1 from 2.03 on 3rd Feb 2007 I have lost the ability to set the home page for our church site: cambray dot org. The static page plugin versions 2.4 and 2.6 do not seem to work. I had a page called home.php (as far as I can remember ) I tried to rename it index as its slug name and it seemed to disappear. When wordpress had finished doing the attempted rename it sent me to a 404 page (which I guess is generated by the ISP host,1and1 dot co dot uk )cambray dot org/index – it had sedoparking dot com links on it . I have created a non wordpress index folder to prevent people arriving at a broken site if they arrive at the site this way. The host provider said something about the htaccess file. The text in the current htaccess one seems to be identical to the one when I backed up the site in 2006 other than the absense of wordpress on line 4 below RewriteBase /wordpress/

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]

# END WordPress

If anyone has any ideas as I am out of my depth here. PS Thank you WordPress community for a great website tool !


The debate is heading towards is_home beiing ment to return true for the blog home page and not the static frontpage. Is solved it in this direction by creating a plugin which gives us a new is_frontpage function which returns true only for the static frontpage.

Check it out here:

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘is_home in 2.1 not working’ is closed to new replies.