Forums

wp_title returning Page Not Found for Homepage after upgrade (2 posts)

  1. tjhanley
    Member
    Posted 2 years ago #

    We recently upgraded to the latest and greatest. Now the homepage that is a list of the last 10 posts is having issues with the title tag.

    <title><?php wp_title(' | ', true, 'right'); ?> <?php bloginfo('name'); ?> <?php if(is_home()) print " | News, Trends, and Advice in Small Business" ?></title>

    this is what gets generated:
    <title>Page not found | Business Blog </title>

    It looks like the is_home() function isn't working anymore either. Any ideas? I've tried searching the forum but no luck so far.

    Thanks, Tom!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    The is_home() conditional works just fine but your code doesn't make sense (assuming I've understood the situation correctly. Perhaps you need to use something like:

    <title><?php if(is_home()) {echo " | News, Trends, and Advice in Small Business";}
    else {wp_title(' | ', true, 'right');}  bloginfo('name'); ?></title>

Topic Closed

This topic has been closed to new replies.

About this Topic