So I am having a strange issue - I added a custom function to append the sharethis buttons to the post-header meta and it puts it there without any problem, but it somehow also adds a random title and permalink above the post content as well and I can't figure out why it would do that. I'm using the latest version of the sharethis plugin with auto-add turned off and this code to add the buttons to my postheader:
function my_sharefb() {
$postmeta = '<span class="st_facebook" st_title="' . the_title() . '" st_url="' . the_permalink() . '" ></span>';
return $postmeta;
}
function my_sharetw() {
$postmeta = '<span class="st_twitter" st_title="' . the_title() . '" st_url="' . the_permalink() . '" ></span>';
return $postmeta;
}
function my_shareem() {
$postmeta = '<span class="st_email" st_title="' . the_title() . '" st_url="' . the_permalink() . '" ></span>';
return $postmeta;
}
function my_sharethis() {
$postmeta = '<span class="st_sharethis" st_title="' . the_title() . '" st_url="' . the_permalink() . '" ></span>';
return $postmeta;
}
function my_postmeta() {
$postmeta = '<div class="entry-meta">';
$postmeta .= thematic_postmeta_authorlink();
$postmeta .= '<span class="meta-sep meta-sep-entry-date"> | </span>';
$postmeta .= thematic_postmeta_entrydate();
$postmeta .= ' <span class="meta-sep meta-sep-tweetmeme">|</span> ';
$postmeta .= my_sharefb();
$postmeta .= my_sharetw();
$postmeta .= my_shareem();
$postmeta .= my_sharethis();
$postmeta .= '</span>';
$postmeta .= thematic_postmeta_editlink();
$postmeta .= "</div><!-- .entry-meta -->\n";
return $postmeta;
}
add_filter('thematic_postheader_postmeta', 'my_postmeta');
Take a look at the output:
http://www.polariscounseling.com/2011/08/five-great-ways-to-show-your-spouse-you-love-them/
Any ideas?