WordPress Plugin: Random Posts Widget

Posted by Ady on Wed, May 2, 2007

▼ A d v e r t i s e m e n t

My better half was complaining that she can’t find a suitable plugin for displaying random posts on her sidebar. I tried to look myself, and there were some reference to the plugin but nowhere to be found. One good plugin I found is Random categories with random posts by Mike Stickel but it uses categories which is not what we are looking for. Also, it requires tinkering with PHP codes which is not suitable for less technical bloggers.

So I went to analyze his code for a little while. What the heck, I’ll just create a simple widget version with no categories involved. So I took about 30 minutes to write this simple code with not so many options. It is a widget and configurable in the Sidebar Widgets page:

Random Posts Widget configuration

  • Widget title: the title of the widget
  • List types: ul for bulleted list, p for paragraph, br for paragraph with line breaks
  • Before title and After title: you have to find out what your theme uses before and after the widget headers. A simple way to do this is to identify a currently existing widget in your site and viewing the source. Find the title and see what is printed before and after. For example it might show as <h2>Widget Title</h2> which is used by most themes.
  • Post count: Number of random posts you would like to be displayed

Basically that’s it. It’s really a simple widget.

I don’t like to reinvent the wheel but since I can’t find any I just have to create one myself. Most probably I will have not so much time to maintain this plugin, but it is suitable if you are looking for a (very) simple plugin to display random posts.

You can download it from WordPress Plugins Directory: Random Posts Widget, or view online here: randomposts.php

Current Version: 1.5.0

Installation

Copy the file to the wp-content/plugins/widgets directory and activate it in the Plugins page. Then drag and configure it in the Sidebar Widgets page.

Warning: Will only work on widgets enabled blogs.

Change Log

  • 07-May-2007: Fixed a bug of displaying widget before and after tag
  • 14-Jun-2007: Fixed a bug where pages are also selected. Now it only displays posts.
  • 26-Jun-2007: Removed before and after configuration options, now taken from theme settings. Was broken for some themes with embedded class in the header tags. Reported by Guohua. Thanks.
  • 03-Aug-2007: Overhauled entire engine to optimize queries. This has been tested on a test blog with 50,000 posts on an old machine (Pentium III 600MHz) in maximum 3 seconds. Also removed duplicated results and added category to choose.
  • 04-Aug-2007: Fixed a bug where wrong permalink was displayed.
  • 10-Aug-2007: Fixed a bug where if 1 post count is selected an error occurred.
  • 27-Sep-2007: Added ability to detect database version (WordPress 2.3 has database changed) while maintaining backward-compatibility with 2.2.x
If you find this plugin useful, feel free to
Related Posts with Thumbnails

Popularity: 16% [?]

Related Articles

Tags: ,

Facebook Comment

WARNING & REMINDER: Comments are moderated and there is no exception. Comments unrelated to the post, too short, using phoney emails or funny names, will be marked as spam. Foul languages are filtered as spam. Your email will never be displayed on this site. If you would like to receive replies, use a valid email address and check the subscription box below.
 
  • http://amanz.net aman

    wow…wanna try it on my localhost.. :D

  • http://au8ust.wordpress.com/2007/05/04/ รวมปลั๊กอินน่าใช้ครับสำหรับ WordPress นะ « au8ust’s wordpress channel

    [...] Random Posts Widget แส”งโพสต์ในบล็อกเราแบบสุ่มไว้ที่ Sidebar widget [...]

  • http://www.fratelliditalia.eu/ Domiziano Galia

    I’m still using Wasabi’s one (now unreachable) simple and straight like yours.

  • http://www.romantika.name ady

    Dominiziano, yeah I am aware of Wasabi’s plugin… but it has been unreachable for a while.

  • Editor

    Hello, on my WP 2.1.3 the plugin, once activated, doesn’t appear in the Presentation/Sidebar Widgets tab. Any suggestions?

  • http://www.dakars.info/wordpress/plugins/%d7%aa%d7%95%d7%a1%d7%a4%d7%99%d7%9d-%d7%9c%d7%95%d7%95%d7%a8%d7%93%d7%a4%d7%a8%d7%a1-2-30507/

    [...] Random Posts Widget – ווידג’ט ל”צגת קישור לפוסט אקראי מ”בלוג שלכם. [...]

  • http://www.romantika.name ady

    @Editor: Are you sure it didn’t? Weird. I have tested it again and again on multiple blogs.

  • Editor

    Unfortunately, I am. After activating the plugin, in the Presentation/Sidebar tab of my site the Random Post widget simply doesn’t appear.

  • http://es.weblogtoolscollection.com/archives/2007/05/03/plugins-de-wordpress-publicados-35/ WeblogToolsCollection Español » Blog Archive » Plugins de WordPress publicados 3/5

    [...] Random Posts Widget es un widget para la barra lateral que despliega aleatoriamente una entrada sin importar la categoría. [...]

  • http://tedlee.cn/2007/05/09/wordpress-is-perfect/ TedLee’s Blog » Wordpress is perfect

    [...] Random Posts widget, Display Random Posts Widget. Based on Random categories with random posts by Mike Stickel. By Ady Romantika. [...]

  • http://escueladeblogs.com/2007/05/09/listado-de-plugins/ Listado de plugins at Escuela De Blogs

    [...] Random Posts Widget es un widget para la barra lateral que despliega aleatoriamente una entrada sin importar la categoría. [...]

  • http://www.dnseo.net/ Astirt

    Well, unfortunally it is true, i do not see it as widget when i try to post..maybe i am doing something wrong i have no clue. Can you give us a screen shot of how it looks the whole page with the randompost widget open?

    Thanks

  • http://www.romantika.name ady

    @Astirt: It is not a widget used in posts. It is a widget to display a list of links to your old posts, on your sidebar. You can see the widget in action at the front page of this blog (bottom of column 3). Ctrl-F and search for ‘Random’. In the administration area, it should be available in the Presentation/Sidebar widgets page as a draggable item.

  • http://www.romantika.name/v2/2007/05/16/wordpress-22/ WordPress 2.2 » romantika.name

    [...] are a bunch of new features for developers too. Looks like I will have to check my simple random posts widget plugin whether it still works in [...]

  • http://www.artdeseduire.com Art de Séduire

    Thanks!
    Worked perfectly, needed exactly 3 minutes to install and configure :)

  • http://www.romantika.name ady

    Wow, thanks for timing it :-)

  • http://www.softwaremusings.com/2007/06/02/a-great-windows-notepad-replacement/ Mike

    Ady,

    Good plugin. One bug is that you are also picking up pages. You need to add to the where clause to check for post_type of ‘post’ for WP 2.1+.

    Mike

  • http://www.romantika.name ady

    @Mike: Thanks for letting me know. I have fixed the bug and updated to version 1.2 :-)

  • http://aspnetguy.com wow gold

    I have the same problem. Where ever I put the widget on my side bar (wordpress 2.1) the rest of my bar just stops loading and it whole page is messed up – Any way to fix this?

    Thanks – I’d really love to use this.

  • http://www.webkoktejl.cz/ Webkoktejl

    Thank you very much for this plugin

  • http://www.romantika.name ady

    To those who are still having problems with this plugin, try the latest version (1.3). And if you still have problems, activate & place the plugin then email me your blog URL (if you don’t want to disclose) so that I can analyze the issue.

  • http://www.wp-plugins-db.org/plugin/random-posts-widget/ WP Plugins DB » Plugin Details » Random Posts widget

    [...] Visit [...]

  • http://aaronbell.org air

    Hi Ady,

    thanks for the plugin! Exactly what I’m looking for *but*

    With a lot of posts (>1200) the query is too slow to use. The sidebar hangs up during page load while the query executes.

    It looks like we’re SELECTing everything in the DB and then shuffling it?

  • http://www.romantika.name ady

    @air: The query is simply utilizing MySQL’s built-in random function:

    … ORDER BY RAND() LIMIT $numPosts

    Internally I think that is the case, like what you mentioned. I will explore other possibilities to retrieve random records and update.

  • http://aaronbell.org air
  • http://www.romantika.name ady

    @air: thanks. I was thinking of the same solution but I am just not sure of what effetc does the extra queries have. Will try this on development machine first.

  • Paul

    Would it be possible to restrict posts by Category. I have a movie review site and I’d like to only include reviews and not other posts.

  • http://www.romantika.name ady

    @Paul: yes that is a splendid idea! I shall include that in the next update

  • http://www.celluloidheroreviews.com/ Paul

    If I may add another suggestion: I sometimes get the same post listed twice (not often but it happens). Can you prevent that from happening?

  • http://blog.peterwongpp.com/?p=47 Random Posts widget » 《論盡蛋》

    [...] URI: http://www.romantika.name/v2/2007/05/02/wordpress-plugin-random-posts-widget/ Description: Display Random Posts Widget. Based on Random categories with random posts by Mike [...]

  • http://eot.bof.nu/ Ben

    Yeah, me too. I have also noticed that the same post can show up several times. Not a big problem, though, but still…

    Great plugin man! I’ve been looking for something like this for a while!

    Cheers!

  • http://wp.onoffer.us/?p=215

    [...] 4、使” Random Posts widget插件,”于在sidebar增加随机文章功能。 [...]

  • http://www.romantika.name ady

    Hello all.

    I’ve just uploaded version 1.4 of the plugin to the plugin directory. I’ve taken a different turn than the suggestions below as WordPress stores data in a very different way. However I have succeeded to rewrite the algorithm and achieved very good performance. A category can now be selected, and no more duplicates. Do let me know if you have any problems.

  • http://celluloidheroreviews.com Paul

    Works great. Just what the doctor ordered!

  • http://www.westdecrepito.com melanie west

    I have successfully uploaded it & put the widget in my sidebar. It appears in my sidebar alright but when I click it, it’s not taking me to the right post. Any ideas why?

    Thanks!

  • http://www.romantika.name ady

    Oh No! Version 1.4.1 contained a bug where a wrong permalink is displayed. Thanks to Melanie for noticing this. I have fixed it and uploaded as version 1.4.2. Grab it once updated on the WordPress plugin directory.

  • http://www.westdecrepito.com melanie west

    WOW! It’s working like a champ now!
    BIG BIG THANKS Ady!
    I used to have Way Back widget in there & I replaced it with this one. It’s better I think! Much much better!
    Great Job!

  • http://www.artdeseduire.com Art de Séduire

    I see you have fixed the duplicate posts bug… great! Will upgrade right now :)

  • http://www.artdeseduire.com Art de Séduire

    Oops… it messed up my sidebar widgets plugin (I am not using the newest WP version) :) Guess it’s time to upgrade :)

  • air

    Excellent job, no issues so far. Thank you!

  • http://www.avinash.ws/wordpress/wordpress-random-posts-widget-because-old-post-matters.html WordPress Random Posts Widget – Because Old Post Matters! | AVINASH 2.0 – Infotech, New Media, Blogging, WordPress & Design

    [...] out WordPress Random Posts Widget if you are a WordPress user and want to keep your old posts visible on the front [...]

  • http://www.metrogirl.com Wendy

    This sounds good, but the one thing I cannot find anywhere is an example of this in action. When I click on what’s supposed to be an examples, I get to see the actual code for this widget, not the end result. I can’t view a working example of the collapsible archive widget either… I looked and looked on the main page, where it’s supposed to be, but I must be missing it?

  • http://www.romantika.name ady

    @Wendy: You missed them. They are all in the front page. The random posts are titled “Random Posts” while the archives are labelled “Archives”. They are both at the bottom of the 3rd column, just before the “Recommended Products” (Amazon). Can you find them?

  • http://www.metrogirl.com Wendy

    Thanks, ady, yeah, I’m a goober… I see it… NOW. The archives feature didn’t look how I expected it to — though yeah, it does what I was looking for. I didn’t see the Random at all. Maybe my brain was having a hiccup.

    BTW, for kicks, here’s the WordPress project I’m working on at the moment: http://www.inception-magazine.com/zine/ . I did my first WP project last month, http://www.stormconstantine.com and was so thrilled with how it turned out I switched hosts on the zine site just so I could redo it (in all its static HTML, CSS-less horror) on another host with WP and PHP.

  • http://www.romantika.name ady

    Ah no Wendy, you are just in a new place and it’s hard to see anyway ;-)

    That is some nice artwork you have there. Keep up the good work.

  • http://www.acikbilgi.com/2007/08/29/acikbilgi-ve-web-tasarimi-uzerine/ AcikBilgi.com » AçıkBilgi.com v2.0b ve Web Tasarımı Üzerine

    [...] Random Posts: Bu widget sidebar’ınızda istediğiniz sayıda rastgele yazıyı listeleyebiliyor. Sitelerdeki “Okudunuz mu?” bölümlerini hazırlamak için düşünülmüş. Ayrıntılı bilgi eklenti sayfasında. [...]

  • http://michfrm.net/blog/2007/09/03/pimp-my-wordpress/ Pimp my Wordpress – michfrms Blog

    [...] Random Posts widget [...]

  • http://nonn.nl el johnny

    Cool plugin! But I dont have this fancy widget stuff cant I just use a simple php tag?

  • http://www.romantika.name ady

    el johnny: I don’t think it’ll work but you can try uploading the plugin and activating it. It can be called with < ?php echo ara_random_posts($before_title,$after_title); ?>. Change the two variables to whatever your plugin uses for the titles. However one problem I foresee is the ability to set options as this is controlled by register_widget_control. Try it out and let me know. Just out of curiosity, what version are you using? Newer versions should have widgets built-in. :-)

  • http://nonn.nl el johnny

    Thanks for your reply ady. Im using wordpress 2.2.3 but with my own very very basic template. Im using wasabi now.

  • http://www.klondarindustries.com Evan

    Hello! I had your plugin installed, but when I upgraded to 2.3, it stopped working.

    Any ideas why this might be the case? Is this a known problem?

  • http://www.romantika.name ady

    Hi Evan – yes this is expected because of changes in WordPress 2.3. I am looking into the matter now.

  • http://www.romantika.name ady

    Evan – amazingly I don’t have any error on my newly upgraded WordPress 2.3 on my development server.

    I need to know the exact errors you see, please.

  • http://www.klondarindustries.com Evan

    Here’s the content of the error, all appearing on my front page. “From the vault” is my title for the Random Posts Widget, and the error appears above it.

    WordPress database error: [Table 'evan_wrdp1.wp_post2cat' doesn't exist]
    SELECT wp_posts.ID FROM wp_posts, wp_post2cat WHERE wp_posts.post_status = ‘publish’ AND wp_posts.post_type = ‘post’AND wp_post2cat.post_id = wp_posts.ID AND wp_post2cat.category_id = 9

    Warning: array_rand() [function.array-rand]: Second argument has to be between 1 and the number of elements in the array in /home/evan/public_html/wp-content/plugins/randomposts.php on line 87

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1]
    SELECT wp_posts.post_title, wp_posts.ID FROM wp_posts WHERE)
    From the Vault

  • http://www.romantika.name ady

    Evan: I’ve updated the plugin to version 1.5.0 and tested it here on WP 2.3: http://homedev.romantika.name/wp-2.3/ and here on 2.2.2: http://homedev.romantika.name/randomposts/

    Please download it and let me know if you still encounter issues :-)

  • http://www.klondarindustries.com Evan

    Everything works awesomely now! Thank you so much!

  • http://chinesehelp.org naturegirl

    I’m looking for a way to show 2 widgets on my site with 2 different categories. Is there a way to do this?
    Thanks for the very helpful plugin!

  • http://www.blogdokter.net/2007/11/15/rahasia-dapur-blogdokternet/ Rahasia Dapur Blogdokter.net | Wordpress | Blog Dokter

    [...] : Plugin untuk menampilan artikel terpopuler berdasarkan plugin Popularity Contest di sidebar. Random Posts widget : Plugin yang menampilkan beberapa post secara acak di sidebar. Subscribe To Comments : Plugin yang [...]

  • Amir

    Is it possible to install this on a non-Wordpress site but linking to a WordPress Blog. In other words, I want to display random posts of my blog on a completely different site that is not a blog and does not have WordPress installed.

  • http://www.manfred-online.at/2005/12/29/vom-konsument-zum-akteur/ Fundstücke » Vom Konsument zum Akteur

    [...] Auswahl eines zufälligen Beitrages Random Posts Widget [...]

  • http://sachachua.com/wp/2008/01/19/10-terrific-wordpress-plugins/ 10 Terrific Wordpress Plugins | sacha chua :: social intranet consultant and geek

    [...] Random Posts widget [...]

  • http://www.wordpressplugin.org/?p=221 Random Posts Widget_Wordpress plugin

    [...] Plugin Homepage [...]

  • http://mooparmghor.com/blog/?p=352 مبرمج حر » Blog Archive » اضافات المدونة

    [...] Random Posts widget [...]

  • http://blog.dharyadi.com/2008/01/28/upgrade-word-press-to-232/ Upgrade Word Press to 2.3.2 | Dadang Haryadi

    [...] Random Posts widget Display Random Posts Widget. Based on Random categories with random posts by Mike Stickel. By Ady Romantika. [...]

  • http://www.spontaneousderivation.com/2008/01/27/moving-from-beta-blogger-to-a-self-hosted-wordpress-for-first-timers-part-3-plugins-and-little-things/ Spontaneous Derivation » Moving from Beta Blogger to a Self-Hosted Wordpress for First-Timers, Part 3: Plugins and Little Things

    [...] 4. Random Posts widget [...]

  • http://www.cydeweys.com/blog/2008/01/31/some-useful-wordpress-plugins/ Some useful WordPress plugins | Cyde Weys Musings

    [...] Random Posts Widget displays a number of links to random posts on your blog. I use to have a “Best posts” heading, but maintaining it was too much of a hassle, so I removed it and simply went for the random links. The ability to browse through a blog randomly rather than having to go chronologically or by category is great, and by giving a choice of posts for someone to click on, they can pick the one that most interests them. If you haven’t tried out the random links yet, do have a go. Most of the traffic on this blog is on recent posts, but the older posts don’t have any less quality. [...]

  • marika

    Hi there.
    I was wondering on if there could be an option for an excerpt (Y/N) with a selectable X number of words. The excerpt would be in plain text. I could be nice for those with little on their sidebar. Thanx for a great plugin

  • http://computer-realm.net/blogger-to-wordpress-part-3-%e2%80%93-plug-ins-to-get-you-started/

    [...] Random Posts Widget [...]

  • http://www.her-life.com/weblog/?p=608 Empfehlenswerte Plugins – [ Her-Life.com Weblog ]

    [...] Random Post Widget: Zeigt eine zufällige Anzahl an Beiträgen in der Sidebar an. Gut für neue Besucher, da sie so auch auf ältere Beiträge hingewiesen werden. [...]

  • http://www.websaytko.com geri

    Works flawlessly on my site! Superb plugin!

  • http://www.dailyseoblog.com/2008/03/24-killer-plugins-for-your-wordpress-blog/ » 24 Killer plugins for your Wordpress blog | DailySEOblog.com

    [...] Random posts widgetThrows up a set of random posts on the sidebar. Good options available. [...]

  • http://www.computer-realm.net/blogger-to-wordpress-part-3-%e2%80%93-plug-ins-to-get-you-started/ Blogger to Wordpress Part 3 – Plug-ins to get you started | Computer Realm

    [...] Random Posts Widget [...]

  • http://zone.org/wordpress/16720-begendiginiz-wordpress-eklentileri-2.html#post129449

    [...] engellemer All in One SEO Pack :en iyi seo paketi Google XML Sitemaps : en iyi sitemap eklentisi Random Posts widget : karışık yazılar gösterir Search Unleashed : ziyaretçiler nereden [...]

  • http://azlan.anilezfa.com sharulazlan

    hai ady..thanks for this plugin..i tested in my WP2.5..look great and working fine..

  • aaron

    First off, GREAT plugin!

    Would it be possible to put this in the body of my blog? Actually insert it in the HTML? I’d love to able to put this at the bottom of my posts. Is there any way I can do this?

  • http://none rize

    can this be used on wordpress 2.5? if not can you make a version for it? thankss

  • http://www.romantika.name ady

    Yep. It works on 2.5.

    There are a lot of plans for this plugin but it has to wait for a while due to other commitments.

  • http://www.fadzli.com fadzli

    my goodness… i’ve been looking for this type of plugin throughout the whole worldwideweb – and i found this post from google. you didnt tell me you have this plugin.

    thanks a bunch ady

  • http://www.romantika.name ady

    Well, sometimes the thing are you looking for is under your own nose and you just don’t realize it ;-)

    Enjoy… you’re lucky you can ask for face to face support for this plugin if you have difficulties LOL.

    Hmmm… I must find time to enhance this plugin. It’s long overdue.

  • http://webdesjan.de/was-soll-in-die-sidebar/ Was soll in die Sidebar? | Das Web des Jan

    [...] Ebenfalls zufällig dargestellt werden nun bis zu fünf Beiträge meines Blogs mit dem Random Posts Widget. Den Meta-Bereich werde ich evtl. auch noch einmal woanders unterbringen. Das meiste davon ist [...]

  • Bobby

    Thanks for this plugin.

    FYI, I used “php echo ara_random_posts($before_title,$after_title); ” with WordPress 2.6.2 and it seems to work fine.

    I’ll let you know if I have to face issues.

  • http://www.myptsmail.com/myptsmail/?p=289 Random Posts in your wordpress blog | MyPTSMail Blog : Wiki,Email,Hosting Info

    [...] For more information or to donate to the Plugin author visit the plugin hompage [...]

  • http://ken-gilbert.com ken

    excellent plugin! fantastic work…

    one quick question, ady–how difficult is it to increase the number of results to 15 instead of 10 max?

    i tried nosing around the code but i’m no programmer i’m afraid. :(

    thanks!

    ken

  • http://brucegao.org Bruce GAO

    thanks a lot!

  • http://rikk.biz/27-plaginov-dlya-wordpress-kotorye-ya-ispolzuyu/ 27 плагинов для wordpress которые я использую | Мои мысли

    [...] Random Posts – добавляет виджет в котором показываются ссылки на случайные записи вашего блога. [...]

  • http://www.abiyanto.net Abiyanto

    Nice work.. !
    Just a newbie around, so I just want to ask a simple thing: how can I enable widget on my WP blogs ?

    Thanks.

  • http://www.ajuaonline.com ajua

    Hi, i installed your plugin but as i’m using jLanguage to make posts in english and spanish your plugin show the post titles as [english]Title[/english][spanish]Titulo[/spanish].

    That is the syntax jLanguage uses to know which language to show but the default Recent Posts widget of WordPress show the titles correctly.

    Is there anything you or i can do to solve this? Many thanks.

    Regards.

  • http://www.romantika.name ady

    Abiyanto, you’re using WordPress 2.0.2 so you need to install a plugin. Widgets are included by default in 2.2 or later.

    If you decide to stay with your current version you can download the plugin here: http://automattic.com/code/widgets/

  • http://www.lemodalogue.fr Christian

    This plug-in works with WordPress 2.7.1 ! Simple and smart !
    Thanks, that’s great !

  • http://strawberriesareglutenfree.com Cathy

    This is very user friendly – thank you! I have gone through a number of plugins to try and find one that will also let me include an excerpt. Would it be difficult to include that in this plugin? I can edit it, but I don’t know where.

    Thanks so much!

  • http://35ribu.com Iklan Baris

    Thank for make this plugin. How to exclude post in display???

  • http://www.miscmusic.net Alec

    Im on wordpress 2.8.6 and your widget has destroyed my blog

    I get this code when i try to acess any part of it, including admin

    Fatal error: Cannot redeclare widget_ara_randomposts() (previously declared in /websites/123reg/LinuxPackage21/mi/sc/mu/miscmusic.net/public_html/wp-content/plugins/random-posts-widget/randomposts.php:198) in /websites/123reg/LinuxPackage21/mi/sc/mu/miscmusic.net/public_html/wp-content/plugins/random-posts-widget/randomposts.php on line 198

    Please get back to me

    Thanks

  • http://www.romantika.name ady

    Delete the plugin file randomposts.php (or the whole folder). As mentioned in http://wordpress.org/extend/plugins/random-posts-widget/ this plugin has only been tested up to 2.3 (although it worked up to 2.7). After you delete you should be back to normal and be able to access your site normally.

    I have intentions to update this plugin but still struggling to find time. WP 2.9 has a lot of changes as well, and this plugin definitely needs to be updated as it will be broken.

    Thanks for reporting the issue.

  • http://www.paulpetch.com Paul

    Hi. This might sound odd- but i’ve uploaded it and activated it and it is nowhere to be seen when i then view plugins or widgets. Hmmm. I’ve then tried to upload again and there is an error saying that it already exists.

    Any ideas? I’m using WP 2.9.

  • http://SixPackTech.com fcgrabo

    This is a great plugin. I’ve had it on my site for many months. I set it and forget it.

    But I’m with reader ken, above, who would like to increase the number of displayed posts to more than 10.

    I’m willing to dig into the style sheet and make changes.

    Thanks.

  • Diana

    Hello!

    This plugin is very nice. But I´m going mad trying to find a plugin or code to randomize post within a specified tag or category..
    For exemple,

    I have 3 posts: Number 1, Number 2, Number 3 under “Lucky Numbers´category”

    And a link somewhere: “whats your lucky number today” – so when clicked, the random code is able to retrieve a post within “Lucky Numbers´category” only.

    It could be very usefull if able to retrive posts within Tags, for a more specific content control.

    If someone else know some plugins or wp/code for this, please let me know!

  • Subhramani

    Hi.. I loved this widget. Thanks a million. Just one question. Can I make it NOT link up to the original article?

    I just want the widget to show up the posts and thats it.
    Please let me know.

    Thanks again :-)

  • http://www.jeconomise.net Faire des économies

    Thanks for this plugin !

  • http://www.grizzly-designs.co.uk Chris

    @Diana….and to all others it may concern (and of course Ady)

    I was also looking for a plugin that could display some random posts from a specific category, as to me this is great for more dynamic sidebar content and CMS based sites. So after looking around a bit I found this handy little plugin, and another one called Get-a-Post.

    Still not quite what I needed so I’ve adapted Ady’s code in a way that allows it’s output to be plugged straight in to the get-a-post plugin! Used in a suitable code loop and voi-la, multiple random posts wherever you need them – although familiarity with PHP is needed so this is most useful to template designers and coders.

    I haven’t ‘published’ it yet as much of the code is Ady’s, and with it’s dependence on the Get-a-Post plugin I felt I should inform both authors first.

    Also this would be my first plugin so I don’t really know what to do in terms of making it available to others, however as long as both respective authors are happy then I’ll see what I can do…

    Thanks

  • http://ro3ert.3artha.de Ro3ert

    I’d like to thank you, a great plugin to show a random post.

blog comments powered by Disqus