Official Twitter Button Implemented (via TweetMeme) — and How to Manually Position It

I’ve replaced the TweetMeme button with the official Twitter button, which should not alter functionality for the site, but may cause some of the tweet counts for each post to change (since the older button used a different metric for counting how often a post got tweeted).

I’m also writing this post because there doesn’t seem to be documentation on the Internet about how to manually position TweetMeme’s version of the official twitter button directly into your WordPress layout.

To use the “Manual” feature for TweetMeme’s Official Twitter button, do this:

  1. Download and install the latest version (1.9) of the plugin.
  2. Activate the plugin in your dashboard.
  3. In your dashboard, go to the options page for the official Twitter button, which is located as a sub-menu of the TweetMeme drill-down.
  4. Set your various options. For display, choose “Manual”.
  5. Open your theme file where you would like the button to display (e.g. index.php or single.php) in Notepad or some other text editor.
  6. Wherever you would like your Twitter button to display, copy and paste the following code:

    <? php if (function_exists('twitter_generate_button')) echo twitter_generate_button(); ?>

  7. Save and upload your file.

Enjoy!

Update: It’s also possible (I found it necessary) to alter the file so that post attributes (e.g. post title) would actually be displayed in the tweet textarea. If there’s interest, I will make my changes to that file available.

Also, I’ve noticed that the Twitter count seems to be reverting to 0 — at least when I tweet. If you notice this is also happening for you, please let me know so I can figure out what’s wrong with the tweet  count.

Did you like this post? Please support Reappropriate on Patreon!
Become a patron at Patreon!