WordPress.org

Support

Support » How-To and Troubleshooting » Page title Display

Page title Display

  • Ok I am using wordpress with the option of Home page is a set page .. and that makes my blog page the News page in my case. Thats all set up fine and working great.

    As has been mentioned before the journal unfortunately then choose to set the most recent post as the wp-title statement.

    This sucks when i want the page to be NEWS.

    Ok I worked it out for the Header in the content of the page .. I put this in :

    <h1><a href="<?php the_permalink() ?>" rel="bookmark">
    <?php if (is_home()){echo 'News ';}
    else
    { ?>
    <?php wp_title(' '); ?>
    <?php if(wp_title(' ', false)){echo '';} ?>
    <?php ;} ?>
    </a>
    </h1>

    However in the title of the Browser I can’t get it to work .. this is my last working of some code .. if anyone can help me out .. or make both sets of code better I would be SO thankful.

    <title>
    <?php if (is_home()){bloginfo('name');echo ' : News';}
    else
    { ?>
    <?php bloginfo('name'); ?>
    <?php if(bloginfo(' ', false)){echo ' : ';} ?>
    </title>

    please someone be a genius !

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