• Hi –

    Every Page on my site properly generates a title for the browser window except two. The two that don’t are the Pages designated as the Front Page and the Posts Page. The Front Page generates a blank title tag, and the Posts Page generates a tag using my site’s Blog Title and Tagline.

    This would seem to me to be a bug. Any suggestions?

    Here are some screenshots in case my explanation didn’t make sense:

    Front Page
    Posts Page
    Example “good” Page

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • what is the code for the title tag in header.php?

    a few lines into header.php – starts with <title> followed by some php code and ends in </title>.

    could you post it here?

    Thread Starter mzimmers

    (@mzimmers)

    Here it is…
    <title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } else { bloginfo('name'); echo(' — '); bloginfo('description'); } ?></title>

    I sort of get this — it looks like my Posts Page is failing this test. Two questions:

    1. why?
    2. since the Front Page doesn’t get the “name – description” treatment that the Posts Page gets, I assume the test is not returning false for it. So, why doesn’t it get anything at all?

    Thanks.

    i am clueless.
    the codex is no help, either.
    http://codex.wordpress.org/Template_Tags/wp_title
    there is no mention of wp_title() returning empty.

    Thread Starter mzimmers

    (@mzimmers)

    Well, I solved half the problem (admittedly the smaller half) by removing the conditions on the call to wp_title. My Posts Page now gives me the desired title.

    The Front Page is still fritzed, though…anyone?

    Update: I hacked the Front Page with the call is_front_page. I suppose I could mark this resolved, but I’m curious as to why the Front Page would need special treatment.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page titles not being generated for two Pages’ is closed to new replies.