MyTwitter 3 for WordPress (Official Plugin Page)

The plugin is no longer maintained due to changes made in the Twitter API. I highly recommend the Twitter Tools plugin by Alex King and Crowd Favorite. It supports tweeting from WordPress, auto-tweeting posts, importing tweets, and many other features.

Final MyTwitter Version: 3.0.3 (December 19, 2009)
Download (Zip) (hosted at official WordPress Plugins site)

About: MyTwitter allows users to display their Twitter status updates (tweets) on their WordPress site and update their status through the Settings page for MyTwitter. Includes customization options including avatar display, number of tweets to display, formatting options, and stylesheets. It can be called as a widget or a function.

Compatibility: MyTwitter 2.01 has been tested to work with WordPress 2.7. It should work w/ versions 2.3 and higher.

Requirements: The current version of MyTwitter requires PHP 5.2 or higher to be installed on your web server as it uses the json_decode function and Twitter’s JSON API.

Installation: Extract the contents of the archive. Upload the mytwitter folder to your WordPress plugins folder (e.g. Set your preferences in the WordPress Settings panel for “MyTwitter” (including username, password, and formatting options). Set the Cache Life to the length of time for the Twitter feed to be cached before checking for updates.

Be sure to set the cache location to the appropriate location on your server. It defaults to the “cache” folder located in the MyTwitter plugin directory.

Stylesheets: Example CSS code is included in example.css. To incorporate on your site, copy/edit the code to the stylesheet for your current wordpress theme. For most themes, this can be done by going to Presentation -> Theme Editor and then select “Stylesheet” from the theme files list. The following is the CSS classes/IDs you can use to style your tweet output (additional notes available in the example.css file).

CSS Classes: mytwitter, mytwitter_tweet, mytwitter_tweet_time, mytwitter_separator
CSS IDs: mytwitter_tweet-1, mytwitter_tweet_time-1, mytwitter_separator-1 — the number increases sequentially for each tweet displayed. If you are displaying 5 tweets, they will be numbered from 1 to 5, (mytwitter_tweet-1, mytwitter_tweet-2, etc.)

To Display Your Tweets:
If you have a widget-enabled theme, you can add it to your sidebar by going to the WordPress Widgets administration screen, selecting “Widgets” from the menu, and then drag “MyTwitter” to the location you want it displayed on your sidebar. If you’d rather add it into your theme manually, use the code below.

<?php if (function_exists(‘mytwitter’)) { ?>
  <li><? mytwitter();?></li>
<?php } ?>

Warranty: This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Newest Version: Download newest version
Old Versions: Download older versions

169 thoughts on “MyTwitter 3 for WordPress (Official Plugin Page)”

  1. Hmmm, now I’ve been doing some reading too about the security updates. Not too sure if this info means anything to you @Erundur Anwamehtar but I’m wondering if this might be the issue?

    “Deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security (ref. Development Updates) “

  2. I installed this plugin, I’m using version 2.8.2 of word press, I go to admin settings of this plugin and all I see is a blank page. any idea what to do?

  3. MyTwitter 2.0.2 is incompatible with WordPress 2.8.3. I am working on a rewrite of the plugin to be compatible with version 2.8 and higher. I will release it as soon as I am able to. Sorry for the inconvenience.

  4. Thanks for the info Erundur. Now I know why I’m getting “You do not have sufficient permissions to access this page.”

  5. dwinfrey, i was having this same problem in 2.8.4, to fix it, change line 215 in wp-content/plugins/mytwitter/mytwitter_admin.php to:

    the change here is the form action, previously the plugin tries to post directly to this file, which wordpress isn’t a big fan of (security concerns, and what not) so you just re-post to the current URL and it all works peachy keen.

    As a side note, I’ve spent a little bit of time making the elitwee class work without the cURL library – I will try to submit those patches somewhere as soon as I’m sure it’s working 100%!

  6. Jim Rubenstein,

    Change line 215 to what??? Please show a example of the code to replace on this line. Im having the same problem and same error..


  7. Does “re-post to the current URL” mean line 215 looks like this:


    Please excuse my amateur question.

  8. For those of you wondering about the change to make it work, I was able to get it to work by this:

    <form name="mytwitter_options" id="mytwitter_options" action="” method=”post” onsubmit=”javascript:return doValidation(this)” autocomplete=”off” >

    hope this helps some of you.

  9. Hi, i am using this plugin. while using the same, i got the below mentioned error.

    Error: Cache location must be writable.

    Anyone can please help me to resolve this. I am using wordpress 2.9.1, later version of PHP 5.2 and also submites my twitter username/password correctly. Als provided acurate cache path and also made the same writable(777).

  10. Hello,

    I am also receiving the error “Cache location must be writable” after uploading my local site to my host. In the admin panel I changed the cache location to “” and changed the permissions on both the “mytwitter” folder and the “cache” folder to 777. I still received the error.

    I then deleted the contents of the cache folder, deactivated and reactivated the plugin, and still got the error (even though a new file had been made in the cache folder).

    So it seems to be writing to the folder, but not reading it. Am I wrong?

    I am working with phpMyAdmin –, MySQL client version: 5.0.51a and WordPress 3.0.


  11. One last thing: I opened the new cache file that was created and it had a bunch of the twitter account info, along with one post from several hours ago (even though there have been posts since). I changed the cache location to include my domain host’s domain info, updated, and checked the new cache file and it was blank. So again, it seems to be writing to the cache file (with the location I gave in my first post), but is still reporting the error.

    Thanks again,

  12. Hi there, receiving a few error messages… I do have version 3.0.4 so not really sure what the compatibility issues are and what I need to do? Thanks so much and thank you for the app!

Leave a Reply

Your email address will not be published. Required fields are marked *