Wordpress coding help

Discussion in 'PHP' started by zsales, Oct 10, 2010.

  1. #1
    I am using wordpress 3.0.1 and am having some title coding issues. I am using the following code for my title tags:

    <?php if ( is_front_page()) { ?><title><?php bloginfo('name'); ?></title><?php } 
    
    else { ?><title><?php wp_title(' | ',true,'right'); ?></title><?php } ?>
    Code (markup):
    For the front page all is well, but for the inner pages, I'm just getting the following:

    http://www.seniorsyoga.org/welcome-to-seniors-yoga/

    How do I make it so that after the "|" it says, "Seniors Yoga"

    Thanks!
     
    zsales, Oct 10, 2010 IP
  2. Zeh.

    Zeh. Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't work with wp but try this:

    <?php if ( is_front_page()) { ?><title><?php bloginfo('name'); ?></title><?php } 
    
    else { ?><title><?php wp_title(' | ',true,'right'); bloginfo('name'); ?></title><?php } ?>
    Code (markup):
     
    Zeh., Oct 10, 2010 IP
  3. zsales

    zsales Peon

    Messages:
    462
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That did it, thank you so much!
     
    zsales, Oct 10, 2010 IP