Wordpress Question

Discussion in 'WordPress' started by Ripped, Sep 8, 2008.

  1. #1
    When I write posts in my blog the title of the post shows up in the following format:

    Name of the Blog >> Blog Archive >> Post Title

    for example If i had a blog about cooking the tile would look like this:

    The Cooking Blog >> Blog Archive >> How to Cook Tasty Chicken



    I'd like only the title of the actual Post to be shown as a title of the page
    So if I use the previously mentioned example the title would be 'How to Cook Tasty Chicken'

    How Can I do this?
     
    Ripped, Sep 8, 2008 IP
  2. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm assuming that you are using wordpress all in one seo, you simply have to change the current structure to %postname% instead of %blogname%archives date%%postname%
     
    godsofchaos, Sep 8, 2008 IP
  3. System0

    System0 Well-Known Member

    Messages:
    168
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #3
    you need to use an if statement within the title part in your header.php template.

    <title><?php if ( is_front_page() ) { ?><? bloginfo('name'); ?> - <?php bloginfo('description'); } else { wp_title(''); } ?></title>
    Code (markup):
    You can add more if statements to controll all the other areas of your site (eg. archives). Note, if you are using WP 2.5 or less, you should use is_home instead of is_front_page.

    Play around with it. I'm sure you will be able to get it the way you want. I wrote a post about this last year entitled Customising the title bar in the head section of Wordpress. Tjat explains how you modify it to suit your needs.
     
    System0, Sep 8, 2008 IP
  4. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Thanks a Lot guys, I'm not using wordpress all in one seo. However I did change the header.php file like System0 said, and now it's the way I want it to be. Thanks
     
    Ripped, Sep 8, 2008 IP
  5. r3dt@rget

    r3dt@rget Notable Member

    Messages:
    1,054
    Likes Received:
    64
    Best Answers:
    1
    Trophy Points:
    220
    #5
    I would suggest using Wordpress All-In-One SEO. Its a great mod, you can change titles with a click, and it really improves your site.
     
    r3dt@rget, Sep 8, 2008 IP
  6. Ripped

    Ripped Well-Known Member

    Messages:
    2,151
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #6
    Well the reason why I didn't get All In One SEO is that I already have plugin that generates the meta tags for each posts automatically, and I fixed the permalinks using another plugin, now I fixed the title, is there still a reason to use All-In-One SEO
     
    Ripped, Sep 8, 2008 IP
  7. r3dt@rget

    r3dt@rget Notable Member

    Messages:
    1,054
    Likes Received:
    64
    Best Answers:
    1
    Trophy Points:
    220
    #7
    Well not really then. I just like AIO SEO because everything you need to change is on one page and there are a few more options for SEO.
     
    r3dt@rget, Sep 8, 2008 IP