Grow your CSS skills. Land your dream job.

WordPress reposting blog title instead of post title.

  • # February 13, 2012 at 11:43 pm

    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.”

    # February 14, 2012 at 12:22 am

    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.

    # February 14, 2012 at 11:33 am

    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/

    # February 14, 2012 at 2:47 pm

    Something close to that, yea. Here’s something that I did on a recent site:

    < ?php<br />
    <br />
    if (is_front_page()   ) { bloginfo('name'); }<br />
    elseif (is_category() ) { single_cat_title(); echo ' | '; bloginfo('name'); }<br />
    elseif (is_single()   ) { single_post_title(); echo ' | '; bloginfo('name');}<br />
    elseif (is_page()     ) { single_post_title(); echo ' | '; bloginfo('name');}<br />
    elseif (is_404()      ) { echo 'Oops, Page Not Found | '; bloginfo('name');}<br />
    else { bloginfo('name'); }<br />
    <br />
    ?>
    # February 20, 2012 at 7:31 am
    <br />
    < ?php if ( is_tag() ) {<br />
    echo __('Tag Archive for "','mazine').$tag.'" | '; bloginfo( 'name' );<br />
    } elseif ( is_archive() ) {<br />
    wp_title(); echo __(' Archive | ','mazine'); bloginfo( 'name' );<br />
    } elseif ( is_search() ) {<br />
    echo __('Search for "','mazine').wp_specialchars($s).'" | '; bloginfo( 'name' );<br />
    } elseif ( is_home() ) {<br />
    bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );<br />
    }  elseif ( is_404() ) {<br />
    echo __('Error 404 Not Found | ','mazine'); bloginfo( 'name' );<br />
    } else {<br />
    echo wp_title( ' | ', false, right ); bloginfo( 'name' );<br />
    } ?><br />
    

    Just copy and paste it on your header.php file in head section.

    # March 1, 2012 at 12:12 pm

    Thanks guys. Worked great!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".