Random Blogroll Plugin for WordPress


Yay! Here’s the first ever plug-in for WordPress blog-engine created by yours truly!

:) It’s not the best plug-in in the world but it’s a great start! I hope you guys love what this plug-in can do.

The Random Blogroll Plug-in chooses a fixed number of links from your blogroll at random and displays them.

Look at the 3rd column (the right most column) on this page, the Random Blogroll plug-in is placed just above the RSS link section. I’ve set my plugin to show only 5 links. Here’s my complete blogroll. See how it chooses only 5 out of the entire list on each page load? Yeah, that’s what it does.


Here’s how you do it –

Step 1 – Upload the file goldfries_randomblogroll.php to your plugins directory. (the location is usually at : installation_directory/wp-content/plugins/ )

Step 2 – Enable the plugin. Click PLUGINS and ACTIVATE Random Blogroll.


Using It On Your Blog – Widget

Here’s how you do it. Just click PRESENTATION, and click WIDGET.

If your theme is Widget-Aware, then you should have no problem dragging Random Blogroll widget into the Sidebar column as shown in the illustration below.


Using It On Your Blog – Non-Widget (manual coding)

For those who are familiar with coding, all you need to do is edit your sidebar.php or whichever file you wish to place the Random Blogroll by placing the following code

Options For This Plugin

Just click OPTIONS, and click RANDOM BLOGROLL. You’ll see a host of options on that page.


Should you so happen to key a number that’s greater than your total number of blogroll links, the plug-in will automatically adjust to display whatever it is that you have.

You could also set Title for the Random Blogroll (like “people I love” or “sites you must visit“) and even mark-up the title with tags like

for example.

Lastly, do remember to contact me or leave a comment here if you have problem using it or if it’s giving you problems.

Total Downloads : [download#1#hits]

Current Version : 2.1.1

Version Info

1.0.0 :
– Plug-in version.

2.0.0 :
– Widget version.
– Options available via Administration Panel.
– Allows adding title.
– Allows appending title.

2.1.0 :
– Optimized code.
– Bug / Error fix.

2.1.1 :
– Displays only entries that are set to VISIBLE

68 Responses to “Random Blogroll Plugin for WordPress”

  1. October 11, 2007 at 5:23 am #

    It’s a good one, but not having the widget-function means I have to edit the sidebar using text editor, and it didn’t went well: i had to manually arrange my sidebar using text editor.

    Prefer it to be widget-friendly. xD

    p/s: I moved my blog back to http://www.joisu.org, addicted-to-hacks.com is a dead link now.

  2. October 11, 2007 at 5:26 am #

    Add on:

    I think making it widget-friendly will make life easier to those who don’t have much php knowledge.

  3. October 11, 2007 at 5:49 am #

    I can’t deny that Joyce! I’m still looking into how to make it WIDGET. :D

    Hehe. My first plugin. Please bear with me. ;) Thank you!

    UPDATED : Joyce, thank you for your feedback. After reading your comments, I immediately worked on finding out how to make it a Widget. A lot of “Googling”, code-modding, code-understanding (referring to other people’s widgets and all) and finally I’ve created a WIDGETIZED version!

    Still testing and I’m just looking at what else could I enhance before rolling it out. I can’t promise it’ll be out today but there will definitely an upgrade!

    Yes, with the new version you can configure the # of links just by using the Administration menu. ;) Cool eh? Stay Tuned!!

  4. October 11, 2007 at 11:45 am #

    you da man goldfries! I think this is very useful plugin if you have too much blogrolls but refuse to show all everytime, i might use this

    Thanks again.

  5. October 11, 2007 at 1:32 pm #

    This is what I am looking for all the while. I guess I will remove my “Links” page and use this.

    Nice one from you, Goldfries!

  6. October 11, 2007 at 1:47 pm #

    Tested it out but it seems that it caused a fatal error. I am using the Executable PHP widget to run PHP scripts like the Top Commentators plugin. Can this problem be solved?

  7. October 11, 2007 at 1:54 pm #

    Yeah, such conflicts can be solved. Just e-mail me the full error message and whatever else that’s seen. :)

    I’m using PHPExec but……. wait, are you placing it on your post or on a sidebar or any other wordpress files?

    oh btw I will be looking into it but probably later, got work to do at the moment. :D

  8. October 11, 2007 at 2:00 pm #

    Fatal error: Call to undefined function: randomblogroll() in /home/wayne19/public_html/wp-content/plugins/execphp.php(24) : eval()’d code on line 1

    The above is the message. I placed the code in my sidebar.

    Take your time. :-)

  9. October 11, 2007 at 2:05 pm #

    It’s my mistake. Check the updated post!

    I changed the function name with my nickname append on the front to avoid conflict. :D I forgot to update the post!

    My apologies to all!

  10. October 11, 2007 at 2:09 pm #

    It works! No wonder error in line 1. Thanks, you provided a great support for your plugin. Nice start, have you submitted this plugin to WordPress database? Nice one, deserved it.

  11. October 11, 2007 at 2:21 pm #

    Going to! I just need people to try it out first. Hehe. First timer create plug-in.

  12. October 11, 2007 at 3:11 pm #

    Another problem, the limiting function seems not to be working. All links came out…

  13. October 11, 2007 at 3:26 pm #

    OK. noted. Try downloading it again. I’ve re-uploaded the file.

  14. October 11, 2007 at 3:48 pm #

    Cool! All done! I guess all the tests have been completed! :-P

    Hope to see it on the next plugin update on Weblogs Tools Collection.

  15. October 11, 2007 at 3:58 pm #

    Hehe. I’ve completed the upgrade and I’m finalizing the tests.

    I have to get other work done before I proceed to upload. The new version will allow you to
    1. Use it as Widget!
    2. Customize # of links through WP-Admin panel
    3. Customize title through WP-Admin panel
    4. Style title (a bit la) through WP-Admin panel

    Interesting? I’ll leave that for tonight. ;)

  16. October 11, 2007 at 4:58 pm #

    Just a short request :p
    Can you do it for the blog post as well? :p
    I mean sometimes it is good to have random post title to pop up from all the blog post.

  17. October 11, 2007 at 6:37 pm #

    Good news for you is that it’s already part of the project pipeline! You just have to wait for it a little. :D

    Let’s just see how “Malaysia Boleh!” I can be. ;)

  18. October 12, 2007 at 2:39 pm #

    do you do plugins for blogger? =P

  19. October 12, 2007 at 4:59 pm #

    sorry chingy, I’m not familiar with Blogger and working on WordPress alone is enough work. :)

  20. October 12, 2007 at 6:51 pm #

    Wei, your version 2 disappoints me ler. I prefer 1. Although I downloaded and installed your 2, I don’t use your widget (do you noticed that there’s an error contained inside your widget? It doesn’t messed up the functions but it shows an error message there), preferred using the PHP code though. :-)

  21. October 12, 2007 at 7:06 pm #

    What’s so disappointing la? :) It’s same like the first one with just loads more features. ;)

    The latest version opens a more more convenient way to use the plugin. Now you don’t have to edit the code each time you want to change the numbers or title or whatever. :D

    *btw from my tests so far, no show of errors. Do remember to tell me what you face so I can fix whatever needs to. ;)*

  22. October 13, 2007 at 12:23 am #


    I think he’s talking bout that.

  23. October 13, 2007 at 4:07 am #

    Hrmm. I don’t face this problem, not on my development server nor my live server.

    I can’t solve what I can’t emulate. Can you guys tell me which PHP version installed on the server?

    Does it happen if there’s only 1 widget?

    Thank you

    UPDATED : Alright, I studied the JPG file and I have done something to the file and I hope it fixes the problem. Yes, I can’t emulate the error but the best I can do is to work on what I saw. Kindly try the new file and see if it works. ;) Thank you!

  24. October 13, 2007 at 7:23 am #

    Problem gone now for me :D

    It happened when I tried to configure the widget, by pressing the button beside the widget.

  25. October 13, 2007 at 8:14 am #

    Check out the latest version, the button shouldn’t be there already. Hehe. I’ve disabled it until further notice……… or at least until I understand widgets better. :)

    Thank you everyone for your support!

  26. October 15, 2007 at 2:40 am #

    I’ve found the plugin for the random post at http://www.texthelden.de/2007/01/14/wordpress-plugin-get-random-posts-from-database/

    perhaps you can use this and improve the function?
    *this plugin only usable on coding and not widget

  27. October 15, 2007 at 3:34 pm #

    Nah don’t worry, my GET RANDOM POST is already under way. It’ll be better than that one. :)

  28. October 18, 2007 at 10:27 am #

    bro, im using ur plugin liao, thanks buddy :D

  29. October 18, 2007 at 10:53 am #

    btw, i found out that when the random blogroll in action, it also grabs the blogroll links which i put visibility to NO.

    is there anyway to fix this?

  30. October 18, 2007 at 11:05 am #

    Noted. It’ll be coming along with my next version. :)

  31. January 4, 2008 at 9:50 am #

    I use your plugin on kmu-blog.de. Ich widgetized the sidbar according to instruction and have most likely still standard mark up, wbich includes a class in the h2-tag.

    To address the heading properly the class is necessary:
    <h2 class=”widgettitle”>Random Blogroll</h2>

    Unfortunatly your option append Title cant cope with classes.

  32. January 4, 2008 at 9:59 am #

    I altered line 78 from:

    if($appendtitle=="1" && $appendinfo!=""){ echo "";}

    if($appendtitle=="1" && $appendinfo!=""){ echo "";}

  33. January 4, 2008 at 12:38 pm #

    @Silke – the CLASS support is part of the next version release. :)

  34. January 14, 2008 at 6:34 am #

    I need the widget to appear under a –li class=”boxr”–.
    How can I format the widget to do that?

  35. January 14, 2008 at 10:14 am #

    Looks like (based on what you posted) you either
    1. edit the location it’s placed
    2. edit the plugin

    a limitation of plugins / widgets.

  36. January 19, 2008 at 9:44 pm #

    Hi Goldfries! I am using this plugin in my personal blog and I just want to thank you for this. I just have a suggestion. Maybe you can make the plugin a bit more manageable like we can configure it the way we want it :) For example, if you look at the links in my sidebar, it is not under that’s why the links are far apart.

    Anyway, great plugin still :) Happy weekend!

  37. January 22, 2008 at 3:54 am #

    Glad to know you like it Sasha! I’m coming up with a few updates on both my plugins soon.

  38. January 24, 2008 at 11:12 pm #

    Dude, this is the one main reason why I migrated from Drupal to WordPress; your plugin! Serious! I was looking for a similar plugin in Drupal and I can’t find it, so I have decided to migrate my entire system to WordPress just to accomodate your wonderful plugin! Kudos to a job well done!

  39. January 24, 2008 at 11:42 pm #

    Thank you! I couldn’t find something like this for WordPress so I made it. Hehe.

  40. June 2, 2008 at 9:56 pm #

    I love this plugin! I’ve got it to have a random 5 in my smallish head-sidebar. The only problem is that the sites that I’m linked aren’t getting picked up in technorati – is this due to them not being in hard HTML coding? It’s a bit annoying having my links almost “wasted” by not achieving their full possibility!

  41. June 3, 2008 at 4:27 am #

    Yes, it’s a plugin to save space but it’s not helpful in giving links since it’s randomized.

  42. Kev
    June 12, 2008 at 3:31 am #

    Hmm might be back to the drawing board then …

  43. June 13, 2008 at 11:52 pm #

    Yeah, it’s a plugin to give random blogroll but not one that’s good for giving people links. :)

  44. June 14, 2008 at 11:03 pm #

    Hey, wow thank you! I’ve been trying to get something like this for so long. However, I’d love to have this connected to a different blogroll – any way to change it?

  45. June 17, 2008 at 6:26 pm #

    Unfortunately this is not possible with the current plugin, assuming your DIFFERENT blogroll refers to another website.

  46. July 11, 2008 at 4:37 am #

    Hi, first of all nice plugin! It was just what I needed.
    I want to make some adjusments to this plugin to fit to my theme.
    I’m not programmer and I don’t know where to add the tag, so the widget should look from http://i38.tinypic.com/ruquk7.jpg to http://i35.tinypic.com/2h6t828.jpg

  47. ooopinionsss
    December 3, 2008 at 11:17 pm #

    How you think when the economic crisis will end? I wish to make statistics of independent opinions!

  48. Duncan
    January 6, 2009 at 9:15 pm #


  49. February 11, 2009 at 4:07 pm #

    is it possible to show only links from a certain category?
    cya max

  50. March 3, 2009 at 6:53 am #

    Seems like people won’t want to exchange blogroll links though if sometimes their links show up and sometimes it doesn’t.

  51. March 15, 2009 at 2:38 am #

    @max – not possible at the moment. sorry.

    @muscle (another odd linker) – yes, that’s the drawback. the idea behind this plugin is to be limited and random. I personally don’t like 100 links appearing on the side bar.

  52. February 18, 2010 at 11:18 pm #

    Nice Plugin! Using it on my Blog! dope!

  53. October 7, 2011 at 2:07 pm #

    Excellent beat ! I wish to apprentice whilst you amend your web site, how could i subscribe for a weblog web site? The account aided me a appropriate deal. I were a little bit acquainted of this your broadcast offered shiny clear concept

  54. December 20, 2013 at 8:13 pm #

    These are really wonderful ideas in about blogging.
    You have touched some fastidious points here. Any way keep up wrinting.


  1. The Art Of Permalinking » Wayne Liew Dot Com - October 11, 2007

    […] new plugin introduced by goldfries.com, I would have phrased my sentence as below: I came across “Random Blogroll Plug-in for WordPress” which highlighted this plugin that was being created by goldfries […]

  2. Randomized Homepage Link For Partners » Wayne Liew Dot Com - October 12, 2007

    […] the Random Blogroll Plugin by goldfries and I am one of the first few testers of the plugin! If you are thinking of doing the […]

  3. goldfries » Random Posts Plug-in for Wordpress - October 21, 2007

    […] : The Random Blogroll plug-in has been updated. *Note : I’m using the same installation pictures from Random Blogroll. […]

  4. pelf-ism is contagious » Busy, busy, busy… - November 8, 2007

    […] mind-mapping about the things that I wanted to do for my other two blogs. I plan to install this Goldfries’ Random Blogroll plugin so that it would pull random blogs from my blogroll. And then I plan to get down and work on […]

  5. pelf-ism is contagious - November 19, 2007

    Non-stop blogging and some link loves…

    Since I submitted my thesis draft to my Supervisor a few days ago, I have been on a blogging frenzy. Not because I wanted to, but because I was determined to clear the accumulated backlogs
    My second guest post at Domestik Goddess — Mabel’…

  6. Aún más cosas que nunca te dije… » Blogs que leo - January 10, 2008

    […] en si, sino una lista de blogs que leo. La lista es increíblemente larga, así que he instalado un plugin para que solo muestre cinco a la vez. Si el tuyo no se muestra a la primera puede significar dos […]

  7. WordPress Plugins Database » Plugin Details » Random Blogroll - January 21, 2008

    […] Visit […]

  8. The Bronze Kettle » Blogroll Additions - March 8, 2008

    […] of our content and pushed our tag cloud and categories into the nether. So I went out and installed Goldfries Random Blogroll Plugin and Website IQ’s Blogroll Page Plugin. These two addons allow me to truncate my blogroll down […]

  9. Générez une blogroll aléatoire sous Wordpress | Another Pinky Punky - June 20, 2008

    […] trouvé mon bonheur chez Goldfries avec le plugin Random Blogroll, utilisable sous forme de widget ou tout simplement par un petit […]

  10. Une blogroll aléatoire sur votre blog wordpress | Jérémy Verda's blog! - September 14, 2008

    […] thème je ne l’utiliserais pas. J’ai donc continué mes recherches et ai découvert Random Blogroll Plugin qui permet soit d’afficher la blogroll à l’aide d’un widget ou d’un code […]

  11. WP plugins « Patoche91’s Blog - October 18, 2008

    […] http://wordpress.org/extend/plugins/global-translator/installation/ http://wordpress.org/extend/plugins/theme-switcher-reloaded/ http://wordpress.org/extend/plugins/google-analyticator/ http://www.goldfries.com/websites-blogging/wordpress-plugin/random-blogroll-plug-in-for-wordpress/ […]

  12. Add a Random Blogroll of Japan Blogs to Wordpress « JapanSoc Community Blog - March 11, 2009

    […] will need a self-hosted WordPress blog and Goldfries Random Blogroll plugin. Go ahead and get the plugin, upload it and activate […]

  13. Plugin – Random Blogroll - B. Hoffmeier - Online - February 25, 2010

    […] und gefunden: Random Blogroll! Das Plugin ist wirklich einfach zu installieren und zu konfigurieren. Einfach in den Plugin-Ordner […]

  14. Pendock Radius - June 28, 2014

    Pendock Radius

    » Random Blogroll Plugin for WordPress | goldfries.com