WordPress.org

Ready to get started?Download WordPress

Forums

How to do I change the TITLE link to reflect only the title of the post (4 posts)

  1. Tee
    Member
    Posted 5 years ago #

    Hey folks.

    Here's the scoop. Check out the screenshot.
    http://i43.tinypic.com/5xo1hi.png

    Basically I did a search for "Terror King" and my site listed 3rd. But i dont want the link to display PUMATALK - Lifestyle blog... and then the title of the post. I would like it to be only the title of the post and in this case being; PUMA Terror King April 2nd.

    Same with the URL, i dont want it to display the number of the post, I'd like to to be http://www.PUMATALK.com/blog/PUMA_Terror_King_April_2nd.html or whatever seo friendly link it should be.

    Please help me out.
    Thanks.
    -Joey

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Edit header.php and use:

    <title>wp_title()</title>

    for your meta-title.

  3. Tee
    Member
    Posted 5 years ago #

    Esmi.

    So all that I need to do to get the link to display the title of the post rather then the generic number of the post is just do the following?

    <title>wp_title()</title>

    -Joey

  4. Tee
    Member
    Posted 5 years ago #

    Im sorry I can't seem to understand... I tried to do what you asked and didn't work.

    Here's the header code.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head profile="http://gmpg.org/xfn/11">
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <script src="/mint/?js" type="text/javascript"></script>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <style type="text/css" media="screen">
    
    <?php 
    
    // Checks to see whether it needs a sidebar or not
    
    if ( !$withcomments && !is_single() ) { 
    
    ?>
    
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg.jpg") repeat-y top; border: none; }
    
    <?php } else { // No sidebar ?>
    
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } 
    
    <?php } ?>
    
    </style>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags