Breukie’s Categories Widget for Wordpress

Porting my old website to Wordpress is really starting to get shape and resulted in yet another free widget for you to download and use :-D

On this website I (want to) use multiple sidebars for different parts of this website. Because I need to have (multiple) categories on most sidebars too, I needed a way to set up more category instances. Also I needed a couple of parameters in several sidebars and thought of a couple of other blogs and websites based on wordpress, in which I would like to have more category instances and specific cool parameters of the wp_list_categories function, available for their owners. As you might know, the wp_list_categories function only exists in Wordpress version 2.1 and higher, but the parameters for “wp_list_categories()” still act like the tags “list_cats()” and “wp_list_cats()” that are deprecated. It has a couple of different parameters and it includes blogroll link categories.

Like my other free widgets, it is a pretty simple widget, but it will definatally do the trick for you too!

Description

Breukie’s Categories Widget is a wordPress widget, to replace the standard categories widget by Automattic. This widget displays pages on your sidebar using the wp_list_categories function, utilizes all available parameters for this function like hierarchy, order and exclude categories in your sidebar. You can also set up to 9 intances of this widget in your sidebar(s).

Requirements

Only for Wordpress 2.1+.

Support

Any questions like support, bug reports, feature requests or any of this kind for this widget, can be posted in my forum. To post a message there, log in with your account, or register first if you do not have one. Still … I am curious what you think of this widget, so feel free to comment 8-)

Installing

  1. Unzip to wp-content/plugins/widgets.
  2. Go to WP admin -> plugins and activate Breukie’s Categories Widget.
  3. Go to WP admin -> presentation -> sidebar widgets, to add the widget to your sidebar(s).
  4. Select how many Breukie’s Categories Widgets you want to show and/or setup the parameters of the widget.
  5. If you are updating from an earlier version, deactivate, delete old version, upload new version and activate it.

Small FAQ

I ticked the checkbox for the “Show Option All” parameter, but I see no change?

  • As of WordPress version 2.1 this parameter does not have any effect on your Category display yet. I included this parameter allready so it wil work as soon as this parameter is or will be in full use.

I use the “Hierarchy” parameter, but I also want to use the “Child off” parameter?

  • It is not possible to use those two parameters at the same time in the same instance. Ticking the checkbox for the “Hierarchy” parameter will allways switch off the “Child off” parameter, whatever you set it to. If you think of it, it is actually very logical. The “Child off” parameter only displays categories that are children of the category identified by its ID.

I use the “Child off” parameter, but I now also see categories with no posts?

  • If the “Child off” parameter is used, the “Hide Empty” parameter will be set to false automatically by the wp_list_categories function itself.

I use the “Child off” parameter, but I don’t see any categories?

  • The “Child off” parameter will show you specific children of a specific category, but if there are no posts in a parent category, the parent category will not be displayed

Version History

Version 2.1

  • Made wordpress 2.2 compatible.

Version 2.0

  • Bug fix.
  • Added and corrected Read Me File.
  • Finishing touches.

Version 1.0

  • Added all available parameters.
  • Cleaned up code.

Download

Breukie’s Categories Widget v2.1 - downloaded 3525 times.

Posted on woensdag, mei 2nd, 2007 at 9:32 pm
Filed under Categories: Hersenspinsels, Websites.
Using Tags: , , , , .
Follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Add this blog article to any of the social bookmarking sites below

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Spurl
  • Reddit
  • De.lirio.us
  • Fleck
  • Furl
  • NewsVine
  • Slashdot
  • Facebook
  • Google
  • NuJIJ
  • TwitThis
Comments

58 Responses to “Breukie’s Categories Widget for Wordpress”

  1. LBnuke » WordPress 2.2 Says:

    [...] gave up on the King widget and instead downloaded and installed Breukie’s Categories widget. This worked fine except that every time I made a change to the widget in the admin section, it [...]

  2. Constantine Says:

    Hello Breukie!

    I just downloaded your WP widgets(all 4 of them) but being absolutely new to blogging and having no knowledge of PHP etc I don’t figure it out how to actually use them. I set up 3 instances of categories in sidebar and all 3 of them display the same content. I was thinking I will be able to manage these 3 instances of categories independently and that’s what I need. I don’t understand how to do it. There is no manual available for using your pluggins, can you help me?
    Thank you.

  3. breukie Says:

    Hi LBnuke,

    I am going to update my wordpress to the latest version today and will look into the problem you have.
    More later.

    Hi Constantine,
    After my update I will help you too ;-)

    HTH

  4. Lori Says:

    Thanks very much, breukie :) Not sure if I will need it for my own site anymore, but I will try it anyway since I use wordpress a lot for other projects and can think of plenty of handy uses for your widget!

  5. breukie Says:

    Hi Lori and Constantine,

    For wordpress 2.2 compatibility, please download the latest version of my widget and reinstall it :-D

    HTH

  6. Der wilde Garten | links for 2007-05-28 Says:

    [...] Breukie’s Categories Widget for Wordpress | Arnold Breukhoven (tags: WordPress Plugin) [...]

  7. Paul Says:

    I installed your widget but it didn’t work putting it in the wp-content/plugins/widgets directory so I put it in the wp-content/plugins/ directory and I was able to turn it on in the plugin admin section. I went to sidebar widgets and slid it in, excluded a few cats and saved but nothing happens. Every time I click ’save changes’ the widget defaults back to the original settings of nothing. I am using WP 2.1.3

  8. Laura Says:

    Hi breukie- I’m using the latest version of the categories widget (2.1) with Wordpress 2.1, and I’m having a lot of problems. The title doesn’t change (I typed in ‘Contents’ but it still says ‘Categories’), the empty categoreis show (even though I checked Hide Empty Categories), and its not eliminating the category number I entered in the “Eliminate Categories” field.
    Yikes! I must be doing something really wrong!
    Help?
    Thanks - Laura

  9. » Categorie... e altre categorie! Says:

    [...] da poco e mi ero fatta la stessa domanda ieri (se ho capito bene la tua domanda ) Ho trovato il ‘Breukie’s Categories Widget’. Provato e funziona perfetamente per aggiungere nuove categorie. Basta seguire le istruzione (in [...]

  10. Alberto Says:

    Breukie, thanks a lot for this genial plugin.

    I was looking for something like it everywhere!

  11. Dana Says:

    Same issues as LBnuke » WordPress 2.2. I love this widget, but there are problems…

    Every time I make any changes to my widgets, the Categories widget doesn’t keep my excluded category and feed image URL and I have to re-do them everytime :-(

  12. Peter Lurie Says:

    Hi Arnold! I really enjoy your plugins! Thanks.

    But, I am having problems with the Categories Plugin. I am using WP2.2, and I cannot get the settings to “stick”. And somehow, the results I do get are not logical. When I only want 2 specific Categories in one Instance, I have typed their names in, separated by a comma. This only works sometimes.

    The most serious problem is that the changes do not stay. And when I change themes, the settings revert to default.

    I have downloaded the latest version (2.1) and still not improvement.

    Any ideas?
    Peter

  13. Dana Says:

    This great plugin stopped working completely when I upgraded to 2.2.1 :-(

  14. Jack Tanner Says:

    Hi Breukie,

    You mention that you’ve set up your WP to handle different widgetized sidebars on different pages. I was about to write exactly that for my blog too. Is your code for that available? If not, could you describe the general approach?

    Thanks!

  15. WP Plugins DB » Plugin Details » Breukie's Categories Widget Says:

    [...] Visit [...]

  16. Daniel Hüsken Says:

    You have this block 2 times in Your code and forgot to comment one out.
    Zhat is why i have no changes on options change.

    //$show_option_all = $options[$number]['show_option_all'] ? ‘1′ : ‘0′;
    //$show_count = $options[$number]['show_count'] ? ‘1′ : ‘0′;
    //$hide_empty = $options[$number]['hide_empty'] ? ‘1′ : ‘0′;
    //$use_desc_for_title = $options[$number]['use_desc_for_title'] ? ‘1′ : ‘0′;
    //$hierarchical = $options[$number]['hierarchical'] ? ‘1′ : ‘0′;

  17. Brian Says:

    just downloaded your plugin, but unfortunately when I customized the widget and save changes the changes are lost - don’t know if this is a 2.2x problem or not, just that it isn’t working

  18. 此心安处-又一村 » Blog Archive » Log[2007.08.02] Says:

    [...] 2、尝试使用Breukie’s Categories Widget插件,效果并不理想,不能解决Categories排序的问题。取消之。缺省的Categories Widget是用name做排序的,改用手工给category名称加上数字的方式暂时解决。 [...]

  19. JR Says:

    Hi Breukie,
    the widget isn’t storing the settings like child, exclude, include etc. Making it useless. And what a shame as the concept is great and I could really use such a widget

  20. Peter Lurie Says:

    Arnie!

    PLEASE can you respond. I really need the Category Widget functions, but none of the categories I include (or exclude) in instances of the Widget, are included or ecxluded accordingly.

    The settings do not ’stick’… I cannot change the Name of each widget instance and none of the settings for category inclusion or exclusion are visible in the Blog (and are lost when I return to the widget set-up boc.

    Help, PLEASE!!!

    I am using Version 2.1, with WP 2.2.2

  21. andre Says:

    Hi there, this plug-in is godsent, but I’m having a slight problem using it in wordpress 2.2.2 - I’ve downloaded the 2.1 release of your category-plugin, but it refuses to remember the ‘exclude category’ when I set it to exclude nr. 2, which is the blogroll-category - any thoughts on what I’m doing wrong? or is this something introduced by wordpress 2.2.2?

    best regards,
    andre

  22. Alain Says:

    Hi,
    I tried to exclude categories from showing up in the sidebar but I still see them.
    Is this option working in WP 2.2?

  23. » inserimento di tutti gli articoli di una categoria su un lato Says:

    [...] Puoi usare Breukie’s Categories Widget. [...]

  24. Matt L Says:

    Likewise, running wp 2.2 and downloaded this plugin for the first time. However, the text fields don’t retain any settings, and the word I typed in for “Title widget” (I didn’t use any funny punctuation) didn’t change. In essence, it really didn’t do anything different. Any ideas what happened? I followed your installation instructions to the letter, and the extended options menu pops up like it’s running fine. Thanks!

  25. Dan Says:

    Hi,
    I have tested your plugin on a vanilla (unmodified and with no other plugins) wordpress 2.2.2 blog and have discovered that the plugin GUI works fine from the Presentation/Widgets menu but that all options entered into the GUI are ignored except the title.
    Is the plugin supposed to be compatible with 2.2.2?
    Thanks, d.

  26. Deb Says:

    I downloaded and installed your widget v.2.1 on WP v.2.2.3 and am having problems. When I set options in the widget, such as “child of” or “include” or “exclude” categories, it does not acknowledge or even save these settings. It did save my title and the hierarchical check, however these are ignored as it displays in my sidebar with just “Categories” as the title and lists all of my categories, not even in hierarchical format. Am I doing something wrong or is this perhaps not compatible with my theme (Bluebird) or version of WP? Thanks!

  27. » Escludere una categoria Says:

    [...] usare questo plugin, fa esattamente quel che ti [...]

  28. gulf Says:

    i had actived the plgin i can add the widgets on the admin but when i try to configure it notthing happen ?

  29. Pat Says:

    Hey,

    I use version 2.3 of wordpress and when I use your widget the settings doesn’t save. You know what’s the problem?

  30. Dario Caregnato Says:

    Hi, great work…but I can’t get it to work!! Why does it lose widget settings every time? :) I mean, it doesn’t save them, no matter how I try…Is there any fix for it? using Wordpress 2.3….thanks a lot! Dario

  31. michelle Says:

    Help! Okay, I downloaded the widget but can’t upload to that directory because there is no such directory. I’m using WP 2.3.1 in which widgets are integrated. I went looking for any info on such a simple question: where do you put new widgets?? Nothing!!! Should I create wp-content/plugins/widgets ?

  32. revenantkioku Says:

    Doesn’t seem to work with 2.3. If you set any of the parameters in the widget panel, it still just displays a normal category list, ignoring all the options.

  33. johny why Says:

    how can it be used to display a single blogroll category?
    thanks

  34. abhilash Says:

    breuki, what a great plugin!
    i’ve just installed it on WP 2.3.2, it works well. but when i try excluding categories, nothing happens and the IDs are not saved. any ideas? thanks!
    regards,
    abhilash

  35. Mark Says:

    Hi,

    installed this on Wordpress 2.3.1 and it wont save any settings (except for the checkboxes).

    Will you be updating as this is a very useful widget!

    Thanks

    Mark

  36. Deb Says:

    This plugin is exactly what I need - the ability to define individual category lists for different category groups, but unfortunately I am not able to get it to work. I am using WP 2.3.2 and am trying to to show only one group of post categories in my left sidebar. The categories I want to show are all children of category 154. But I am not able to get anything in the plugin to work. It does not use the title that I put in, rather just displays the default “Categories” and when I input parameters for “child of” or “exclude” or “include” none of them hold, rather they disappear from the widget admin screen as soon as I save and of course, the changes do not reflect in my sidebar. Is the plugin not compatible with WP 2.3+ or am I doing something wrong? Thanks!

  37. Breukie’s Categories Widget_Wordpress plugin Says:

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

  38. hinnerk Says:

    This widget sounds very good for my purpose!
    I just tried to use it on 2.3.2 but it does not remember my configuration except “title” and the checkboxes.
    Please kindly email me when you fixed it for 2.3. Thanks

  39. Robert Says:

    Don’t think this works with wp 2.3.2 can you verify?

  40. charles Says:

    good day to you!

    thanks for the widgets - I do hope you are still writing them!!!

    As I understand it in wordpress the hierargy is as follows -
    Pages
    Category(ies) within pages
    Posts within categories

    BUT I COULD NOT FIND ONE PLUGIN WHERE THE PAGES ARE SHOWN AS A DROP-DOWN LIST LIKE THE ONE FINDS WIDGETS FOR CATEGORIES!!

    I FOUND A WIDGET WHERE YOU CAN LINK CATEGORIES TO PAGES - BUT THIS LINK IS ONLY DISPLAYED IN A TABLE USED BY ADMIN.

    WOULD IT BE ABLE TO DESIGN A WIDGET WHERE -

    PAGES ARE DIPLAYED IN A DROP DOWN
    AND WHEN SELECTING A PAGE THE CATEGORIES FOR THAT PAGE IS DISPLAYED
    AND WHEN SELECTING A CATEGORY THE POSTS TO THAT CATEGORY IS DISPLAYED????

    I WOULD - AND I AM SURE MANY MANY WORDPRESS USERS WILL REALLY APPRECIATE A WIDGET LIKE OUTLINED ABOVE - SINCE IT WOULD MAKE NAVIGATION SO MUCH EASIER!!!!!

    WHEN WRITING A POST A CATEGORY MUST BE SELECTED - AND YOU CANNOT SAVE THE POST UNLESS THE CATEGORY HAS BEEN SELECTED - ALREADY IMPLEMENTED ON MY SITE

    KIND REGARDS
    CHARLES

  41. francesco Says:

    Hi, this widget is compatible with wordpress 2.5 ?? thanks

  42. Jason Says:

    With Wordpress 2.5.1 I found that the settings weren’t saved, so I only could see the defaults.

    I made the following changes, around line 255:

    for ($i = 1; $i <= $number; $i++) {
    $name = ‘Breukie\’s Categories ‘ . $i;
    register_sidebar_widget($name, ‘widget_breukiescategories’, $i);
    register_widget_control($name, ‘widget_breukiescategories_control’, 460, 400, $i);
    }

    I basically just simplied the code and it started working. Curious to know if I broke something else!

    Hope this helps. Email me if you want me to send a diff.

  43. Philix Says:

    This is a great plug in :)

  44. wildcat Says:

    Hello Breukie!

    I just downloaded your WP widgets (all 4 of them) but being absolutely new to blogging and having no knowledge of PHP etc I don’t figure it out how to actually use them. I set up 3 instances of categories in sidebar and all 3 of them display the same content. I was thinking I will be able to manage these 3 instances of categories independently and that’s what I need. I don’t understand how to do it. There is no manual available for using your pluggins, can you help me?

    I use wordpress 2.6
    Thank you.

  45. Philo Kezzar Says:

    Hi, I really like yr plugin and thank you so much for this.
    I want to use in my blog but I got a problem.
    Activating plugin is ok but whatever I type to exclude or include any numbers, they lost after I click “Save Changes” button. I mean yr widget cannot save any data so only default list is display.
    I’m using Wordpress 2.6.2 and I tested with 2.6.3 as well. Both fail.
    Could you please help me checking yr widget?
    Thanks in advance!

  46. Filly Says:

    Seems to me that none of these plugs work for 2.6.+. Pity.

  47. Dmitry Says:

    i’ve tried to exclude or include categories separated with “,” like “1,2,3″ but when i’m pressing save widget loosing input data. what might be wrong?

  48. Dmitry Says:

    function widget_breukiescategories_control($number)
    has setup of
    $show_option_all = $options[$number]['show_option_all'] ? ‘checked=”checked”‘ : ”;
    $show_count = $options[$number]['show_count'] ? ‘checked=”checked”‘ : ”;
    …..

    parameters but no setup for $exclude and $include and etc parameters that are using lately in input controls such as

    <input style=”width: 300px;” id=”breukiescategories-feed_image-” name=”breukiescategories-feed_image-” type=”text” value=”" />

  49. Dmitry Says:

    i mean
    <input style=”width: 300px;” id=”breukiescategories-feed_image-” name=”breukiescategories-feed_image-” type=”text” value=”" />

  50. 4webmasters » Top 1000 WordPress Plugin Authors Says:

    [...] Breukie’s Categories Widget [...]

  51. Baseciq Says:

    Breukie, you should get a lifetime php coding prohibition. I don’t know what are you smoking while coding, but your make VERY SIMPLE LOGIC errors in your plugins making them unusefull.

    Look at this:

    if ( $hierarchical == ‘1′ )
    // ANDER DOET HIERARCHY HET NIET!
    $child_of = ”;
    } else {
    $child_of = ‘&child_of=’ . $child_of;
    }

    WHY THE FUCK you checking $herarchical variable to do something with $child_of?

  52. juke Says:

    Hello breukie,

    this plugin is a very,very good thing and makes some things easier. But it will not run under Wordpress 2.7. - ist this right? Do you devolop this Plugin further on? I hope, that would be great - please let me know.

    Regards
    juke

  53. Daniel Says:

    will this plugin work in wordpress 2.7?

    will it be upgraded?

  54. Daniel Says:

    I’ve category with many subcategories.

    Is it possible to show only the subcategories but not the category?

  55. Silvia Says:

    Breukie, you’ve made my day!! Excellent widget!!! I had to find a way to choose what categories to display, among too many, and your widget has just the perfect content I need!! Thank you sooooo much!!!

  56. Silvia Says:

    but it doesn’t work well on the 2.8 version. I had to input the data on the php sheet.
    thank you anyway!

  57. Rajiv Mehta Says:

    how can I pull the category widget in body area of wordpress. Lack php skills, but from the posts here, it looks feasible. PLease advise. Thanks!!

  58. breukie Says:

    To all users of this plugin.
    My apologies, I haven’t updates my website, let alone my plugins for a long while. To be more exact, my last update was 2 more than 2 years ago.
    The issues described in your comments are known to me and will be solved. I am now in the progress of updating and upgrading my website and after that will update my plugins too.

    To all of you I’d like to day: I am sorry for the inconvenience :-)

    Please keep in mind that these plugins are free and to donwload just because it might help you and I like to share it with you all.

Leave a Reply