• I am using GoDaddy to forward to and mask my domain, the problem is that I think the way that Godaddy masks the url breaks the is_home function such that it returns false on the home page of my site.

    <?PHP
    //decide which section title to display
    if (is_home())
    {
    echo '<div class="homepic"></div>';
    }
    else
    {
    echo '<div class="codepic"></div>';
    }
    ?>

    So when I turn the url forwarding off and I also set the URI in the options page to the non-forwarded url, the function works. When I turn it on, and change the settings in the options page to match, it breaks and the 2nd div is displayed. Is there any way to fix this?

Viewing 1 replies (of 1 total)
  • WP hates any kind of url forwarding and similar tricks. You’ll always have problems with such a setup.

Viewing 1 replies (of 1 total)
  • The topic ‘url forwarding/masking breaks is_home()’ is closed to new replies.