function tweet_button($content) { global $post; // Your Twitter ID goes here $twitterid = 'jan_dembowski'; $tweetbutton = '
'; // $content = $content . $tweetbutton; $content = $tweetbutton . $content; return $content; } add_filter('the_content', 'tweet_button');