Support » Fixing WordPress » Page Title Problem

  • Hi everyone. I recently changed my blog so that the page titles would be the post title (<title><?php wp_title(); ?></title>).

    The problem is now my home page has no title. Any ideas as to how to fix this?

    FYI my blog is at if it helps.

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is there any particular reason, you didn’t want your blog name in the page title, on individual entries? I find it’s good for SEO purposes, otherwise:

    <?php if(is_home()) : ?>
    <?php bloginfo(‘name’); ?></title>
    <?php else : ?>
    <title><?php wp_title(); ?></title>
    <?php endif; ?>


    Indeed I DO want a page title on my home page, but using the code that I am using to name the other page titles it wont give the home page a title.

    Can you elaborate on what I can do with the code you listed above?


    I’m not sure if I understand correctly, the default is
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>

    which on the home page the page title is “Your Blog Name”, and individual entries is “Your Blog Name » Your Post Title” And I was wondering why you didn’t want the blog title in the page title of your individual entries?

    With <title><?php wp_title(); ?></title> You don’t have page titles for archives either –

    Now with the code, on the home page the page title is “Your Blog Name” while the individual entries have “» Your Post Title” as their page title.

    Since you’re using WordPress 1.2.2, it actually should something like:

    <?php if (!$single) : ?>
    <title><?php bloginfo(‘name’); ?></title>
    <?php else : ?>
    <title><?php wp_title(); ?></title>
    <?php endif; ?>

    Hope that helps you 🙂

    I have my index page title incorporated in the image I am using at my site I would like to eliminate the “Second thoughts” that is called automatically because at the moment it is in the title twice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page Title Problem’ is closed to new replies.