Twitter Flock for WordPress: multiple accounts tweets with style

Twitter Flock is WordPress plugin for showing multiple accounts tweets with different color scheme for every account. Also, there are setting allowing you to control how your tweets will look like and will they cache or not.


One of the things that make this plugin different form other are tabs above Twitter Flock box. This tab shows accounts avatars so visitors can click on them and see only tweets from that account. From 1.1 version Twitter Flock have sidebar widget.

With Twitter Flock you can:

– show tweets from multiple accounts or only one account,
– cache tweets for faster page load,
– set different color scheme for every user,
– show only tweets with defined hash tag,
– link url inside of tweets,
– display tab with accounts avatars so visitors can select which account tweets wants to see,
- easy implement as sidebar widget,
- custom header title

You should follow those steps in order to install Twitter Flock on you WordPress:

1. Upload `twitter-flock` directory to the `/wp-content/plugins/` directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Add this <?php include (ABSPATH . ‘/wp-content/plugins/twitter-flock/twitter-flock.php’); ?> in header of your template
4. Put <?php TwitterFlock(); ?> in your template on place where you want Twitter Flock to show tweets or
5. Drag widget on your sidebar
6. Set options on admin panel

Twitter Flock, beside standard options, have and some not-so-standard features.

My favorite feature and main reason why I made this plugin is possibility to show only tweets with chosen hash tag and remove that hash tag from tweets. So, now on I can show only those tweets that I select with #ws hash tag and I will not bother you with rest of my tweets.

Another cool feature is tab bar above Twitter Flock box so your visitor can choose only tweets from selected account. Also, you can choose different colors for background and text for every user separately.


* Header title
* Option for exclude jQuery in case of conflict

* Sidebar widget
* No need for inlude line in header
* Fixes problem with new avatar appereance

Comments [ 67 Comments ]

  1. Dustin Goerndt
    February 11, 2010

    Hey there, I’m taking a crack at your new plugins. They look great! I place this php in my header

    But, I’m getting these errors.

    Can you help me out?

    Thanks, Dustin

  2. Dustin Goerndt
    February 12, 2010

    Hello, Just dropping another line.. In case you miss my question. I’m getting these errors..

    Google Buzz Er is working for me now.. But, I’m still having the same header issues with Twitter Flock.. I’ll hang tight until there’s an update.


    Buzz Er looks great!

  3. Lazarevic Ivan
    February 12, 2010

    Hi Dustin,
    I’m not sure why are you getting those errors and how some of them are related with Twitter Flock. Give me some time to check and please tell me which version of Google Buzz Er works for you ?

  4. Michael DiSanto
    February 22, 2010

    Can you add an option to not include jQuery to the plugin? I am including my own copy of jQuery for other parts of the page and the TwitterFlock jQuery include is conflicting with it and preventing subsequent javascript from running. I’ve modified the TwitterFlock code in the meantime but obviously if I ever upgrade the plugin I’ll have to keep doing it. Thanks!

  5. Kelli Marshall
    March 3, 2010

    How do I create a header/title above the Twitter Flock posts? See footer on

  6. Lazarevic Ivan
    March 3, 2010

    Good point, I’ll include that option.

    @Kelli Marshall
    I’m not sure that I completely understood your question, but I think that you should check “Show Tabs” option on Twitter Flock options page.

  7. Kelli Marshall
    March 5, 2010

    For instance, on sidebars, you can title your widgets (e.g., Latest Posts, Categories, Links, Blogrolls, etc.). Is that not a function for Twitter Flock?

  8. Lazarevic Ivan
    March 5, 2010

    No, there is no option for that, but it’s a good point.

  9. willo
    March 6, 2010

    Hi Ivan

    I implemented this on my friend’s site – – but it’s loading REALLY slow (even with cache turned on)… and slows down the load time of the entire sidebar. Any idea how I can speed it up?

    Thanks in advance,
    ~ Willo

  10. Lazarevic Ivan
    March 11, 2010

    Hi Willo,

    It seems that you have some blogger.js from some other widget that slows loading of you page.
    Sorry for late response : )

  11. Yuri
    March 13, 2010

    Is it possible to set only hashtags in config without setting user names? I tried and get empty list :(

  12. Lazarevic Ivan
    March 23, 2010

    Yuri it’s not possible, you must set username.

  13. Lazarevic Ivan
    March 29, 2010

    Version 1.2 of Twitter Flock is now available for download. New options are:
    * Custom header title
    * Option for exclude jQuery in case of conflict

  14. Arne
    April 26, 2010

    Hi, I just installed your twitter flock plugin and am using it through the sidebar. For some reason it leaves about 3 feet of empty space between the title and the tweets. How can I solve this?

  15. Lazarevic Ivan
    April 26, 2010

    Arne, weird bug : ) Try to put next line in css file:
    #twitter-flock-body { float: left; }

  16. Si
    May 24, 2010

    I’m getting these errors…

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/internet/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 176
    Warning: fclose(): supplied argument is not a valid stream resource in /home/internet/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 177

    Any ideas?

  17. Phil Guadalupe
    May 25, 2010

    Hey – I was totally loving your Twitter Flock. Then, I increased people I follow by like 40 or so… then TF returned an error on the face of my page and didn’t display the thumbnails. I tried dragging the widget off and on, then i deleted and reload it.

    Problem is that I can’t get the widget to reappear so that I can drag it back on to my site in WordPress Admin area. Can you please help? Thank you so much – cause your plugin was badass until i screwed it up (Is there a limit on people I can follow via Twitter?).


  18. Phil Guadalupe
    May 25, 2010

    Ok – it’s back in my widgets area, but I still cannot resolve the problem (thought I could reload and it would resolve). I’m really not a techie, so I need the widget to work like it did intitally. Please help (thanks) – below is the error:
    Warning: date() expects parameter 2 to be long, string given in /home/mmataa/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 271

  19. Phil Guadalupe
    May 26, 2010

    Warning: date() expects parameter 2 to be long, string given in /home/mmataa/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 271

    The error returned. Twitter Flock was working fine for 24 hours – All I did to cause the error minutes ago was post two tweets within 3 minutes (or so). Please help? PLEASE???

  20. Lazarevic Ivan
    May 26, 2010

    Can you give me url with example ?

  21. Ryan
    July 2, 2010

    Great plugin! I was using Tweet Blender, but it was way to temperamental, especially with all the Twitter API issues. I use it in a sidebar, but I’d like to recommend a feature. Tweet Blender had an archive of tweets that you could place anywhere with a bit of shortcode. Your plugin with multiple accounts fills up the sidebar quickly, but an archive would alleviate the need to have a really long list of tweets.

  22. Akk
    August 9, 2010

    Hi there.

    I’ve been playing with your plugin, and here’s the question:

    Is there anyway of making it to autorefresh the Twitter API so it gets new tweets without reloading the entire page?

    I’ve tried with some AJAX onto a div, but doesn’t seems to work with this plugin php code.

    Maybe on a future version? Thanks!

  23. Greg
    August 14, 2010

    Hey, this plugin works well except that i’m trying to get the tab images to show up for the 2 accounts I added. Only the ALL image is showing. However, when I add the option to show images with all posts the correct images show next to each post, still though, not in the tabs…

  24. Greg
    August 14, 2010

    also, i noticed in twitter-flock-content there is some versioning code around line 238.

  25. Greg
    August 14, 2010

    ok… sorry to post again on your thread… i found what went wrong for me. basically, my twitter accounts were created using camel case. so the loop that generates the tab links was using the variable $val that is all undercase. for my case, I created a new variable $lVal and used strotolower(). however, i think i could have just changed the accounts to be lowercase in your app’s settings…

  26. Greg
    August 14, 2010

    i found a cross browser bug. ie browsers cannot use the css style opacity. to make life easier i added a style to the twitter-flock-css.php sheet. it includes the standard opacity methods by applying a filter first. this means the script code around line 239 needs to be modified. i used the jquery addClass and removeClass methods. lastly you want to apply the class to the image and not the < a > tag… this not works great for me. i may do some more modifications. right now the plugin is setup for 2 accounts with tabs. i wanted to show 2 updates per TAB, and not account. so the ALL tab has 2 updates, but the other tabs only show 1 because they are filtered down from the ALL tab…

  27. Judy
    August 17, 2010

    I cannot get this, or any other multi-twitter feed wordpress plugin, to pull in tweets from more than one twitter account. I can get it to pull in more than one tweet from one account, but just that one. I have tried multiple accounts and it still doesn’t work. I am using WP 3.0.1. Is this not compatible, you think?

  28. Charlotte
    September 18, 2010

    I was wondering if there was any way to limit the tweets so replies aren’t shown?

    Great plugin btw

  29. Andrea Moro
    September 20, 2010

    Hi there,

    I was looking after a plugin which allow me to publish my two different twitter feeds according to some specific condition, therefore I’d like to know if I can choose which account to publish using a variable or something like that to be put into the code with an if statement.

    Is this possible?


  30. Joshua Bartos
    October 9, 2010

    this is super duper buggy!

  31. Tania Grønvald
    February 23, 2011

    I’m receiving this errror.

    Warning: fwrite(): supplied argument is not a valid stream resource in

    Does anybody know what is wrong?

    The url is

    Any help would be very much appreciated. I had the same problem with Twitter Blend.



  32. Ryan
    February 25, 2011

    Loving the plugin! Wondering the best way to tweak font, font sizes, size of user’s photo?

  33. Lazarevic Ivan
    March 16, 2011

    You should try with CSS, each element have different class

  34. MackSumo
    March 22, 2011

    Hey, love the plugin. Although sometimes it doesn’t refresh with new tweets for days on end. (even when i refresh the page)Is it because i’ve added too many usernames to it or what? If so, can you tell me the maximum amount of usernames is suggested to add without causing the problem?

  35. bungkelip
    April 5, 2011

    I Found this:

    “Warning: fopen(/home/vip022/public_html/wp-content/plugins/twitter-flock/cache/ [function.fopen]: failed to open stream: Permission denied in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 175

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 176

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 177″:

    What can I do??

  36. SJWPM
    April 8, 2011

    Hey Ivan,
    I have installed your plugin and it’s quite cool. Congrats on that. Everything works like a charm however I am trying to see if we can open the twitter a/c’s and http links in a new window so that the user stay put in our website. Please share the possibilities and your thoughts.

    SJWPM Team

  37. Elayne
    April 18, 2011

    Hi Ivan!

    Awesome app! Really helped my website. Thank you so much for making it open to the public. May I ask for your help tho? is it possible to just display the first name of the twitter screenname?

  38. Oscar
    June 3, 2011

    The [lugin is great, but, I have two comments for you.

    First I think there is an error in the line 340 of twitter-flock-content.php
    tf_cashes would be tf_hashes!

    and the second is, when I put hashes in the option, the plugin doesn;t work

    Thank you


  39. Rob
    June 22, 2011

    so i just found this plugin, decided to try it, and i get a twitter logo with my tweets being like 600px down at the bottom of my page? (no tabs whatsoever)

    i tried changing all the options, and looked at the script… everything seems fine? (check my site, i’ll leave it up)

    • Lazarevic Ivan
      June 23, 2011

      It seems that it’s CSS issue, I’ve just add float: left for #twitter-flock-body and your tweets are visible.

  40. Rob
    June 30, 2011

    i’m sorry, i feel dumb lol
    where do i put this?

  41. Rob
    June 30, 2011

    oh AND i changed my theme, the tweets don’t load at the bottom of the page. now i just can’t see the tabs : /

  42. Inbae Ahn
    July 21, 2011

    Hi Ivan,
    Retweets are not coming through the feed. Is there a setting I mis-configured?

  43. ho
    December 7, 2011

    I’m getting a “Cannot retrieve data from Twitter” error (it repeats over and over again). It was working fine before. Did something change?

  44. RL
    December 23, 2011

    how do you edit the width of the twitter flock widget? I either want to make it wider (260px) or set to auto width. Can’t find anywhere in the code to do it… please help! thanks!

  45. Marcos Robinett
    January 16, 2012

    Really enjoyed this blog.Much thanks again.

  46. buy twitter accounts
    January 28, 2012

    Hi there, just changed into alert to your blog thru Google, and located that it’s really informative. I’m going to watch out for brussels. I will appreciate if you happen to proceed this in future. Thank you for spending your time posting on this blog ! Have a nice day .

  47. Tim
    March 6, 2012

    @Bungkelip— I just had this issue:

    “Warning: fopen(/home/vip022/public_html/wp-content/plugins/twitter-flock/cache/ [function.fopen]: failed to open stream: Permission denied in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 175

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 176

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 177″

    TO SOLVE: Pull the twitter-flock directory down from your FTP. View the permissions for the folder, if Everyone is set to read only, change to read&write and apply to contents.

    Then put back up on FTP and the issue should be solved.

  48. Martin
    April 10, 2012

    Is this plugin available somewhere for WordPress 3.x ?
    I’ve tried to download from plugins page but twitter-flock.php seems to be empty or the .zip broken.

    Seems to be a great plugin!

    Thanks in advance

  49. David - Diseño Web
    April 29, 2012

    It would be nice to have an option in Options Page to Disable CSS, as you have already to JS.

    I remove the line 39 in twitter-flock.php in order to disable it.


  50. David - Diseño Web
    April 30, 2012

    And I give a plus thing. In order to validate HTML I change the line 196 of twitter-flock-content.php:
    $img = “”;


  51. Ryan
    June 19, 2012

    Love your widget but is there any way to filter out any conversations and just keep individual posts?

  52. seo tips
    June 27, 2012

    Appreciate the recommendation. Let me try it out.

  53. Keep this gοіng pleasе, great job!

  54. bungkelip
    October 15, 2012

    I’ve done what you suggested but still got the problem, now that appears:

    “Warning: date() expects parameter 2 to be long, string given in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 271:

    Warning: date() expects parameter 2 to be long, string given in /home/vip022/public_html/wp-content/plugins/twitter-flock/twitter-flock-content.php on line 271″

    Please help us how this problem can be solved, thanks.

  55. Great post. I was сhecking conѕtantlу this blog and
    I’m impressed! Extremely helpful info particularly the last part :) I care for such information much. I was looking for this certain info for a long time. Thank you and good luck.

  56. Sid Sperry
    December 12, 2012

    I am currently using a Twitter widget on my website to post tweets about weather. However, the widget that I have can only be keyed or programmed to allow the display of one hashtag at a time. Currently, the hashtag selected is: #okwx which means we are posting only those tweets dealing with Oklahoma weather. However, we would like to have a widget that allows for the posting of multiple hashtags, such as #txwx for Texas, #cowx for Colorado, #kswx for Kansas, etc. Will your widget help us meet our need?

  57. Joseph Carrington
    February 18, 2013

    FYI, the plugin only allows the widget to appear in one sidebar, strangely. Once I drag it to a sidebar it removes itself from the available widgets.

  58. Jeff Hughes
    February 22, 2013

    I installed the plugin and configured and then placed it on the right sidbar. Nothing shows up expept and empty box and the twitter logo.

  59. Catherine
    April 6, 2013

    After checking out a few of the blog posts on your website, I seriously like your technique of writing a blog.
    I book marked it to my bookmark website list and will be checking back soon.
    Please check out my website too and tell me how you feel.

  60. Suzanne
    June 12, 2013

    Hi, I love twitter flock but it has up and quit working. I get the error –

    Warning: date() expects parameter 2 to be long, string given in /home/xxxxxx/public_html/ on line 272

    Nothing on my site has changed and I have not changed the settings on the plugin. How can I fix this error?


  61. Suzanne
    June 15, 2013

    Nevermind, I couldn’t get it working or get help to fix it so I went with a different plugin that works. Thanks anyway.

  62. Jason
    June 15, 2013

    Same problem as Suzanne, guess I’ll have to find the widget she was talking about.

  63. robert
    June 17, 2013

    I installed twitter flock 2 weeks ago. It worked flawlessly.

    Today I noticed that my entire web site did not load. It looks like there has been an issue at my provider and they had to restore the drive. I suddenly had old plugins/files back and new plugins/files were gone.

    I reinstalled the new plugins (including twitter flock) but when I enable twitter flock the entire web site stopped working.

    I’m not able to get twitter flock working again on my site.

    (I also noticed that twitter api v1 is no longer supported by Twitter but as I did not need to enter a secret key I expect twitter flock does not use that, and anyway, that was already a few days back).

  64. Katya
    June 18, 2013


    Thank you for the great plugin!
    Yesterday I noticed that latest twits were not showing. I thought that the maximum amount of twits was reached so I increased the number, but it didn’t help. Checked all settings, but still don’t see what the problem might be. Do you know where I should look for the problem?

    Thank you,

  65. TD
    July 11, 2013

    Do not use this plug-in; whether it’s with issues with new Twitter API, or because of something else, this plug in will WRECK your WordPress site. I spent 45 minutes with my hosting company (Hostgator) trying to get my site back up and running (it will create an internal server error from a corrupt HT Access file and force you to disable all plugins before you can restore).

    Hostgator said they’ve encountered 4-5 other instances of this problem with Twitter Flock and are considering posting an advisory to clients.

    It’s bad – if you don’t have good support or solid skills, this could kill your site.

» Trackbacks and pingbacks click to expand

  1. Hyde blog…

    Use of such emphatic words in this article shows an intense excitement in what this guy is trying to convey….

Leave a Reply

More Articles

more on