• I have wp_title() set to display in my page header.php

    <div id="headpage" style="visibility: visible">
    <?php wp_title(' '); ?> </div>

    however for my posting page, ie the one set by Reading Options
    posts page, the title does not on this page:

    http://www.pmtate.co.uk/jottings

    Any ideas why not and how to fix?

    TIA

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem. I’m using WP as a CMS and have static pages except for the “news” page which is set in settings/reading to be the blog page. H1s show up for all the static pages but the h1 tags are empty for the news page even though it has the title “news”.

    Did you find out what was going on?

    I fixed it for my site. My blog page is a sub page of the about page and that was causing the problem. There is no is_subpage() condition so I went about it the other way around – every page on my site is a page, the news page is the only blog page. Here’s my code:

    <h1><?php
    if (is_page()) {
      wp_title('');
    } else {
      echo "News";
    }
    ?></h1>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_title not dispayed’ is closed to new replies.