WordPress.org

Ready to get started?Download WordPress

Forums

Posting to Facebook or Tweetmeme doesn't show post title (2 posts)

  1. gantproductions
    Member
    Posted 4 years ago #

    Hey guys,

    Earlier today I fixed my blog from not posting each post title. It was posting only the blog title on every page including the blog posts. So when I would post stories to facebook or twitter, my plugins would pull only the blog title from the post instead of the post title! This was very frustrating.

    I received help from you all and now my posts correctly display the post title in the browser title bar. However, the problem still exist. My tweetmeme plugin and facebook share plugin are only pulling the blog title for some reason! Examples of my problem are here and here.

    Now I saw an earlier post where someone used All in One SEO to fix their problem but it did not work for me. Also another fix was to make sure <?php wp_head(); ?> was in header.php before the </head> tag. Mine has been there.

    I've tried many things and I'm all out of luck. Any suggestions?

    Info:

    Blog: http://www.alexxhenry.com/blog
    Theme: Benevolence

    Header.php:

    <!DOCTYPE html
         PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title><?php
    if (is_home()) {
    	bloginfo('name');
    } elseif (is_404()) {
    	echo '404 Not Found'; echo ' | '; bloginfo('name');
    } elseif (is_category()) {
    	echo 'Category:'; wp_title(); echo ' | '; bloginfo('name');
    } elseif (is_search()) {
    	echo 'Search Results'; echo ' | '; bloginfo('name');
    } elseif ( is_day() || is_month() || is_year() ) {
    	echo 'Archives:'; wp_title(); echo ' | '; bloginfo('name');
    } else {
    	echo wp_title(); echo ' | '; bloginfo('name');
    }
    ?></title>
    
    	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
    	<style type="text/css" media="screen">
    		@import url( <?php bloginfo('stylesheet_url'); ?> );
    	</style>
    
    	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        	<?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php //comments_popup_script(); // off by default ?>
    	<?php wp_head(); ?>
    
    </head>
    
    <body>
    
    <div id="wrapper">
    
    	<div id="masthead">
    
    <div id="ahplink">
    <a title="alexx henry photography" href="http://alexxhenry.com/">alexx henry photography</a>
    	</div>
    	</div>
    
    	<div id="insideWrapper">
  2. TalkTweetMeme
    Member
    Posted 4 years ago #

    Hi There,

    With regard to the TweetMeme button you must have your <title> tag filled in with valid characters. This is what is shown when you look at the source:

    <title> » Digital Touch Screens Coming to New York Streets | Alexx Henry Blog – What is inspiring is contagious. A collection of artistic inspiration filtered through the eyes of a photo studio.</title>

    >> is seen as an invalid character and anything between that and the | is ignored. As such if you remove this. Clear your blog cache if you have wp-supercache or similar and then ping our server either by re-saving the posts or going to http://tweetmeme.com/ping.php which will force a recrawl of your site and an update of our cache to the current title structure.

    Also note that the structure you have currently
    "Digital Touch Screens Coming to New York Streets. Alexx Henry Blog - What is inspiring is contagious. A collection of artistic inspiration filtered through the eyes of a photo studio."

    is too long for a single tweet, as such you may want to shorten your Blog Title so that it fits into 140 characters including the short URL.

    Many thanks
    Sarah

Topic Closed

This topic has been closed to new replies.

About this Topic