1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to change wp post title structure?

Discussion in 'Blogging' started by dekadent30, Mar 22, 2012.

  1. dekadent30

    dekadent30 Power Member

    Joined:
    Nov 10, 2008
    Messages:
    516
    Likes Received:
    145
    When i write post i have page title like this: blog title > Blog archive > post title, how to change this to
    Post title > Blog title
     
  2. jamunkala

    jamunkala Regular Member

    Joined:
    Aug 14, 2010
    Messages:
    284
    Likes Received:
    55
    Location:
    India
    Home Page:
    Code:
    <title><?php if (function_exists('is_tag') && is_tag()) { echo 'Posts tagged "'.$tag.'" - '; } elseif (is_archive()) { wp_title(''); echo ' Archive - '; } elseif (is_search()) { echo 'Search for "'.wp_specialchars($s).'" - '; } elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } elseif (is_404()) { echo 'Not Found - '; } bloginfo('name'); ?></title>
    Put the above code in header replacing with older title
     
    • Thanks Thanks x 2
  3. jacob8

    jacob8 Regular Member

    Joined:
    Sep 15, 2010
    Messages:
    237
    Likes Received:
    45
    Thanks i needed that as well. Good information..