Title: Manually add the tweetmeme button? Code?
Last modified: August 19, 2016

---

# Manually add the tweetmeme button? Code?

 *  [phattrance](https://wordpress.org/support/users/phattrance/)
 * (@phattrance)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/)
 * Whats the code for manually add the tweetmeme button on my theme? i cannot find
   it anywhere.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [kikamagazin](https://wordpress.org/support/users/kikamagazin/)
 * (@kikamagazin)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612822)
 * Hallo normaly it should be <?php tweetmeme(); ?> but in my Blog it doesn´t work;(
 *  Thread Starter [phattrance](https://wordpress.org/support/users/phattrance/)
 * (@phattrance)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612828)
 * same here, that php code did not work!
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612829)
 * plugin page says
    `Compatible up to: 2.7.2`
 *  Anonymous User 6762853
 * (@anonymized-6762853)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612887)
 * I’m not sure when it was changed, but use
    <?php echo tweetmeme(); ?>
 * I looked at the code, and it seems this function just calls for the neccessary
   code from another function assuming you’ve set in the options to use “manual”
   setup. But it doesn’t display it for you automatically.
    Thus since all it returned
   was a string, you need to echo it to display it.
 * More plugins seem to be doing this, not really bothered to track down why yet.
 *  [Jacques Letesson](https://wordpress.org/support/users/jk_/)
 * (@jk_)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612966)
 * Hi there,
 * Using : <?php echo tweetmeme(); ?> works ok!
 * But I was wondering if it’s possible to use display manually the typical twitter
   button… When I set the option to manual and the use the code : <?php echo twitter();?
   > it doesn’t work!
 * Any ideas?
 * Cheers.
 *  [s0fa](https://wordpress.org/support/users/s0fa/)
 * (@s0fa)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612981)
 * [@jk_](https://wordpress.org/support/users/jk_/)
 * I’m also wondering the code to manually add the Twitter button. I don’t get why
   the manual codes are not displayed on the plugin page
 *  [s0fa](https://wordpress.org/support/users/s0fa/)
 * (@s0fa)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612982)
 * [@jk_](https://wordpress.org/support/users/jk_/)
 * solved it on my own. apparently there is no function for manual output like the
   tweetmeme, so I just added this to the twitter.php file
 *     ```
       // Manual output
       function twitter_button() {
           if (get_option('twitter_where') == 'manual') {
               return twitter_generate_button();
           } else {
               return false;
           }
       }
       ```
   
 * and then add this to wherever you want the button to go:
 * `<?php if(function_exists("twitter_button")) echo twitter_button(); ?>`
 *  [janustudios](https://wordpress.org/support/users/jojithedevil/)
 * (@jojithedevil)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612986)
 * [@s0fa](https://wordpress.org/support/users/s0fa/) Thanks alot buddy thanks a
   tons u saved alot of time…
 *  [deemorgan](https://wordpress.org/support/users/deemorgan/)
 * (@deemorgan)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612998)
 * [@s0fa](https://wordpress.org/support/users/s0fa/) thanks mate this worked a 
   treat been looking for this for ages. might want to send this to tweetmeme and
   ask them to make a point of this in their documentation.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Manually add the tweetmeme button? Code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tweetmeme.svg)
 * [TweetMeme Button](https://wordpress.org/plugins/tweetmeme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tweetmeme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tweetmeme/)
 * [Active Topics](https://wordpress.org/support/plugin/tweetmeme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tweetmeme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tweetmeme/reviews/)

 * 9 replies
 * 8 participants
 * Last reply from: [deemorgan](https://wordpress.org/support/users/deemorgan/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/manually-add-the-tweetmeme-button-code/#post-1612998)
 * Status: not resolved