WP Author’s Tweets – WordPress Plugin

Posted Friday 22nd Jul 2011 by Dan

In this weeks web design video tutorial, I will be showing you a plugin we have created for WordPress called ‘WP Author’s Tweets’. This plugin is best suited for PHP5, but will still work in PHP4.

What this plugin does is it allows you to add a Twitter username to each individual Author on your WordPress blog. You can also add a number which related to how many latest tweets you want to show. Using two simple lines of code you can echo out a ‘follow me’ button and your latest tweets.

The code to do this is as follows:

<?php echo get_followme(); // this shows the follow me button
<?php echo getLatestTweetWP(); // this shows your latest tweets

As long as you have entered either a username and latest tweet count for Author’s or entered a default entry, you can add the above code on your single.php. The reason behind adding the code to your single.php is that when a particular blog author publishes a post, their specific twitter information will be shown underneath their blog post. If using the default settings then you can echo the code anywhere on your blog.

It really is as simple as that to use. We’re currently working on an update for the plugin to allow you to wrap the latest tweets in your own custom HTML.

Download the plugin here.

If you have any questions, comments or problems then please leave them below!

By Dan

Dan is a huge Wordpress fan. He enjoys creating hectic PHP functions and playing football amongst other things. See all of posts.

  • Joe Wilcox

    Plugin looks awesome dan. Good job mate!

  • http://www.raski.co.za Peter Hall

    Brilliant, just what I need for a multi author blog. I am a Luddite however; will you be changing the plugin by any chance to include the php code automatically when activated ?

  • http://www.crearedesign.co.uk/ Dan

    Hi Peter,

    Thanks for your comment! Glad it can be of use to you!

    In terms of updates, I am finishing some little extra’s I’ve added to the functionality so you can display a feed of all tweets to a certain username. I’ve also added the ability to show a feed for a particular search. Unfortunately, with custom themes etc – there isn’t a way to get the code automatically added. I’ve tried to make it as simple as possible. Literally all you do is paste wherever you want your feed to show up. I have just made a note however, to maybe make this into a widget – so you could be able to drag it into your sidebar via the back-end. I’ll see what I can do so keep your eye out for an update!

    Thanks,
    Dan

  • Peter Hall

    Hi Dan.
    Thank you for your swift and full reply. I like the idea of a widget.
    My problem was that I tried pasting the code into single.php in a few places (one place at a time of course) and it broke, error messages.
    It might be a theme issue. Here is the code if single.php. Please let me know wher I should paste your code. Many thanks.

  • http://www.crearedesign.co.uk/ Dan

    Hi Peter,

    No problem…Unfortunately the PHP etc hasn’t carried across in your comment. Is there any way you can insert it into your page quickly, copy & paste the PHP error that appears and show me that?

    Thanks,
    Dan

  • gixty

    for it always shows the default followme twitter user. It doesnt show the author’s followme button.

  • gixty

    guys where can I contact you?

    I am still having the same issue. No matter what I put in the user’s or author’s boxes, it always pulls the default twitter user and default tweet number.

  • http://www.crearedesign.co.uk/ Dan

    Hi,

    The plugin at the minute works in such a way that a default twitter username and tweet number over-writes any author’s fields, whether it is empty or not. I am tweaking the functionality of this and will release an update which resolves this.

  • gixty

    Thank you so much for the reply. Great plugin!

  • http://www.jobshadow.com Aaron

    This is great! I’m wanting to allow contributors level users the ability to have their twitter feed posted in the Sidebar on their ‘interviews’(or posts for most WordPress sites)

    Does this only work with Author level users? Also, how would one get it in their Sidebar? Thanks!

  • Heidi

    This is a great idea for a plugin, but for some reason it’s only picking up the details I put into the default settings, rather than per user. If the default settings are blank then nothing shows up. Is it possible to re-jig this a bit?

  • http://www.crearedesign.co.uk/ Dan

    Hi Heidi,

    First of all, thanks for downloading our plugin! We’re actually in the process of adding and tweaking some functionality in the plugin and hope to release an updated version soon! This in mind, your version shouldn’t be broken. I think the default settings overwrite each user’s settings – have you entered the twitter details per user on their profile page?

  • http://cm-life.com Connor Sheridan

    Hey Dan, I’m having the same problem as Heidi — the only thing that shows up is the default option despite putting my Twitter information into my user settings.

    When no default is put in, it just shows “Follow @” where the button should go as a regular link (which leads to twitter.com), without any of the neato follow button styling.

    Glad to hear you guys are working on an updated version and I’ll happily re-activate if it resolves the issue!

  • http://www.crearedesign.co.uk/ Dan

    Hi Connor,

    Sorry to hear you’re having the same problem! I’m hoping to get the new version released in the next few days so please bare with me :) We’ll have an newer version available soon!

  • http://www.corpulentcapers.com Mark Adams

    Hi,

    Any news on an updated version of this plugin. The last comment in April, said a few days. This would be a great plugin if only you could fix the issue with individual users details being over-ridden.

    Please. please release a fix.

  • Michael

    Hi, I have not downloaded this plugin yet as I don’t know if it would work for me. I run a buddypress site on a single wordpress install. I’m just wondering if I use this plugin if I could the php calls in the sidebar of the buddypress user profiles.

    I just want a simple plugin the last 5 tweets of my buddypress users in a sidebar format. It don’t need to be integrated with the activity stream or anything. Thanks

  • Bets

    Hi I’d like to remove the ‘by’ before authors name. How do I?