Sillybean

Random Posts from Category

This widget will list random posts from a chosen category. You can choose how many posts to display, and whether to show the excerpt or the full content in addition to the post title. You may also link the widget title to the category archive if you like.

Random Posts from Category widget screenshot

Random Posts from Category widget screenshot

Translations

Belorussian (be_BY) by FatCow.

19 comments

Sharing this post? The short URL is http://sillybean.net/?p=2399

19 Responses to “Random Posts from Category”

  1. Adam Kayce says:

    This is an awesome plugin. I’ve been adding my own php code to the sidebar file to make this happen, but that limits the flexibility of where it can display, unless you get into hacking in extra widget areas (blah), and takes a bunch of extra time.

    Your plugin does exactly what I was hoping for, and does it perfectly. 5 stars.

    (by the way, I don’t know if you’ve seen Chris Pearson’s post about this at Pearsonified, but that’s where I got the idea and the code from… I bet his community—the Thesis crowd—would love to know about this plugin.)

    • Stephanie says:

      Thank you so much! I’m glad it was useful.

      I have not seen Chris’s post, but I’m considering using Thesis for a project myself, so that community might well include me by this time next week. :)

  2. Pande says:

    Would be great if the category were dynamical, I mean if I’m in a post show me the category it belongs… if I’m in a search show me the cat. of the first post, etc…
    Regards.

  3. Stephan says:

    I would also love to be able to use this with pages!

  4. Maria says:

    I’m looking for a Random Post by Tag plugin that enables me to specify the number of random posts and the tag they should match. I’ll be manually inserting it in my theme, so I don’t want a widget. If you know of anything like that or can write it, please let me know.

  5. eren says:

    What is manuel adding code ? My theme isnot widget ready, please help..

  6. Deniz says:

    how can i use it without widget ?

  7. Jon says:

    Excellent plugin, just what I needed! Wondering if you could shed some light as to where/how the excerpt length can be controlled within this widget? Is it using the default wordpress excerpt length? Dug around in the PHP a bit but couldn’t work it out.

    Thanks in advance for any help, and thanks for the plugin all together!

    • Stephanie says:

      It does use the default excerpt length, unless you have the_excerpt Reloaded installed. Then you’ll get a couple of extra option fields, including the length.

      WP 2.9 includes support for customizing excerpt length as well as the [...] at the end.

  8. Lynne Robson says:

    For some reason it only seems to be picking up the most recent post in the category…

    I also have your recent post plugin active…could they be conflicting?

  9. Lionel says:

    A nice widget. Thanks a lot.

    I need to put this wodget manually in my html-code. Can you give me a php-code which launch this pluging. Instead a sidebar option in WP. Please!

  10. Ys says:

    Nice plugin
    but is there any way to also make the category random, I mean I just want a bunch of random posts from various categories ?

  11. Stephanie says:

    Lynne, I’m pretty sure I’m using the two on the same blog without conflicts. I’ll double-check, though.

    Lionel, it’s in the works, but not yet.

    Ys, no, there are other plugins that display random posts from any category. This one is more specific.

  12. Todd Googins says:

    Stephanie,

    I am having the same problem as Lynne Robson. It is definitely only showing the most recent post pulled from a category. How can I fix that so that it is truly random?

    Thank you so much for your plug-in.

    Todd

  13. Plug-in is awesome but I am trying to figure out how to change the excerpt so that it does not display so many characters. Is there a viariable I can change? Is that an option you might soon incorporate?

    Good job.

    Stu

    • steph says:

      Stu, if you’re using the_excerpt Reloaded, you’ll have an option right in the widget itself to limit the number of words. Otherwise, you can put a few lines of code in your functions.php file. However, with that method, you’ll be changing the lengths of all your excerpts across your site, not just the one shown in the widget.

      • the site is at http://sodeepdemo.ofyourwebsite.com and I do not understand what you mean by “the_excerpt Reloaded”. I see the code in the Widget Editor but I am not a programmer. So, I don’t know what to do. As I am using your plug-in, I do not have an option to limit the number of characters. And I don’t want to make a global change to the website.

        Sorry if I am being a pain.

        Stu
        202-462-4290

  14. Wow. That was simple and it works. Thank you so much for your help! :)

    Stu

Leave a Reply