Automatic title in my blog

Discussion in 'PHP' started by fadetoblack22, Apr 13, 2008.

  1. #1
    fadetoblack22, Apr 13, 2008 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Edit the file called header.php in your templates folder

    Look for this
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    Code (markup):
    then you add something around like
    
    if (is_single()) {
    // echo alternative <title>
    }
    else {
    // echo original <title>
    }
    Code (markup):
    Use the wordpress documentation to get the syntax - particularly for picking up the post slug.
     
    sarahk, Apr 13, 2008 IP
  3. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks. I got the first bit to work, but not the second. I know nothing about php, so I can't work it out by myself.
     
    fadetoblack22, Apr 14, 2008 IP
  4. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    u can use all in one seo pack plugin which will do all this job and all meta tags .. image description and lot more ..... it is available in plugin directory
     
    nandanamnidheesh, Apr 14, 2008 IP
  5. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #5
    any idea what it is called? Its important the the index page is my own set title, but the rest I want generated.
     
    fadetoblack22, Apr 14, 2008 IP
  6. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #6
    anymore help?
     
    fadetoblack22, Apr 17, 2008 IP
  7. gsv13

    gsv13 Well-Known Member

    Messages:
    2,773
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    130
  8. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #8
    thanks thats great!
     
    fadetoblack22, Apr 17, 2008 IP