treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Wordpress reposting blog title instead of post title.

  • I have the permalinks set to default. Is that why our advertising guy is saying...

    "All of the blogs read as AOC Articles (blog title) as the headline instead of the post title when we repost."
  • Don't really understand your question, but it sounds like he's referring to the < title> tag and not that actual title that renders in the < h1> on the page.
  • Yeah I was afraid that might be difficult to understand but wasn't sure how to say it.

    The ad firm is trying to repost an article from our site and when he does so the title of the repost is our blog title not the post title. We would like it to be the post title.

    I am including a link to a graphic that he sent showing the article from AOC (our company) and several others. Ours says "AOC - Arcticles" instead of "MRI Cross Sections of Leg Muscles. Interesting & Eye Opening." Again, the blog title instead of the post title.

    I am hoping this is more clear.

    Graphic:
    http://alortho.com/screen.png

    Blog:
    http://www.alortho.com/articles/

  • Something close to that, yea. Here's something that I did on a recent site:
    <title><?php

    if (is_front_page() ) { bloginfo('name'); }
    elseif (is_category() ) { single_cat_title(); echo ' | '; bloginfo('name'); }
    elseif (is_single() ) { single_post_title(); echo ' | '; bloginfo('name');}
    elseif (is_page() ) { single_post_title(); echo ' | '; bloginfo('name');}
    elseif (is_404() ) { echo 'Oops, Page Not Found | '; bloginfo('name');}
    else { bloginfo('name'); }

    ?></title>
  • <title>
    <?php if ( is_tag() ) {
    echo __('Tag Archive for &quot;','mazine').$tag.'&quot; | '; bloginfo( 'name' );
    } elseif ( is_archive() ) {
    wp_title(); echo __(' Archive | ','mazine'); bloginfo( 'name' );
    } elseif ( is_search() ) {
    echo __('Search for &quot;','mazine').wp_specialchars($s).'&quot; | '; bloginfo( 'name' );
    } elseif ( is_home() ) {
    bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
    } elseif ( is_404() ) {
    echo __('Error 404 Not Found | ','mazine'); bloginfo( 'name' );
    } else {
    echo wp_title( ' | ', false, right ); bloginfo( 'name' );
    } ?>
    </title>

    Just copy and paste it on your header.php file in head section.
  • Thanks guys. Worked great!