Collapsing Category Menus Plugin
Thursday, October 5th, 2006
Collapsing Category Menus is a WordPress 1.5+ plugin that generates a collapsing menu of your post categories as an unordered list. The current category or the current post’s category are tagged with a css class allowing you to highlight them. The current version is 0.1 and was released on October 5, 2006.I have not tested this plugin under WordPress versions earlier than 1.5. However, I suspect it works correctly in most WordPress versions.Please submit any comments, bug reports, and other issues in the comments to this post.
Download
Collapsing Category Menus[.zip ]
Installation
Collapsing Category Menus is installed by decompressing the zip file above and uploading the collapsing_category_menu.php file to your plugins directory (/wp-content/plugins/) and then enabling the plugin in the WordPress Plugins administration screen.
Use
Once you’ve activated the plugin, you can produce a collapsing category menu by inserting the following in your template file:< ?php echo collapsing_category_menu(); ?>The function also has 6 parameters that you can use to tailor the display of the unordered list.collapsing_category_menu ( $root_id = 0, $order_by = 'cat_name', $order_dir = 'ASC', $css_li = 'page_item', $css_li_selected = 'current_page_item', $current_id = '' )
- $root_id: The parent page ID. If you’d like to have all of your pages in the menu, use 0. To show only sub-pages of a particular page, use that page’s ID. Note that the given page will not display as part of the menu.
- $order_by: The database field to use for record ordering.
- $order_dir: The direction in which to order the pages.
- $css_li: The CSS class for every page li.
- $css_li_selected: The CSS class for the current page li.
- $current_id: Override in cases where the $post variable is compromised or inaccurate. Most of the time, you won’t need to use this parameter.
Demos
If you have found the plugin useful, please leave me a comment with a link to your site and I will add it here.
Version History and Changelog
- 0.1 - 2006-10-05 Initial release.
Related Plugins
TAGS: categories, comments, hacks, menus, navigation, php, plugins, projects, wordpress



85 Comments to “Collapsing Category Menus Plugin”
Universities and Colleges | Search Engine Optimization Blog-Core SEO
October 6th, 2006 at 9:49 pm
[…] The latest visual strategy for the site has been to add a new plugin for collapsing menu categories. With my SEO strategy of World Domination, I like to have a category for everything that moves relating to the subject. That makes for a lot of categories, and it was visually getting a bit cluttered. Great for SEO! But SEO is not everything. People have to like it once they get there. I suppose the best would be a standard css dropdown menu for the categories. But have not found one of those yet - hmmm. Maybe the standard wordpress hierarchical menus, then have some different css to create the dropdowns for them. That might just be the trick. […]
KnicKnac
October 11th, 2006 at 5:48 pm
Hello, thanks for making this plugin, but I am stuck at where I am supposed to put this line in my template file?:
Thanks for any help you can give me!
Cam
October 14th, 2006 at 10:02 am
KnicKnac: This line may go wherever you wish. Most probably, you’ll be putting it in your sidebar.php file, since that tends to be where Wordpress menus show up. Other likely candidates are the footer.php or header.php files.
Rub3X
October 22nd, 2006 at 5:00 am
Eep delete that spam. Anyways you might want to update your links, as they are broken. If anyone needs the download link it’s in http://sporkfancier.com/wp-content/uploads/collapsing_category_menu.zip
Cam
October 22nd, 2006 at 2:08 pm
Rub3X:
Thanks for the heads up. I\’ve disabled trackbacks. I\’m in the process of upgrading the site, when I\’ll have BadBehavior installed to prevent that sort of spamming.
The link you provided is the same as the link in the post.
Doru
October 28th, 2006 at 5:21 pm
Well….I keep adding “” to sidebar footer and who knows where else to no avail. All I’ve got so far is the code being displayed “as is” on the page. Anybidy care to shed some light on this?
bambit
October 29th, 2006 at 3:12 am
I have the same problem as Doru, I am running on Wordpress 2.0.4 and the code displays as is (as the code) when I put it on my sidebar, and yes, I have enabled the plugin on my plugins page. Hope you can help.
bambit
October 29th, 2006 at 3:14 am
oh hold on, i forgot to take out the space between the
Cam
October 29th, 2006 at 6:15 pm
Doru & bambit:
I think I see the problem. Wordpress “helpfully” added a space between the < and the ?php. I’ve updated the code sample in line, but the code you are to put in your template is:
<?php echo collapsing_category_menu(); ?>
monte
November 5th, 2006 at 7:01 am
nice and useful plugin. thx4 great work. One problem/task for me: to exclude single pages from menu, for example an “advanced-search-link”. What is the parameter to exclude single pages (root) by id?
Cam
November 5th, 2006 at 10:50 am
monte: that facility doesn’t currently exist in the plug-in, though it would certainly be a smart addition. I’ll add it to the list. Thanks!
Kat
November 5th, 2006 at 10:49 pm
Your demo page (top-schools.com) displays the post count after each menu item. How is this done?
Cam
November 6th, 2006 at 11:47 am
Kat:
The top-schools.com webmaster made a modification to my plug-in to achieve that functionality. It’s on my list of enhancements, but for now, you might want to compare the code in my function to that in the wp_list_cats() function.
Kat
November 7th, 2006 at 10:11 am
I am so not a programmer. Can you at least point me to which bit of code I should be looking at? And/or when will the next version be out?
roberto
November 13th, 2006 at 11:17 am
HI and thanks for this plug in;
I did install it and it works ok, the only thing is that is not creating an open for a sub menu of a menu. Am I doing anything wrong?
Veg
November 25th, 2006 at 5:30 pm
Hello, I am looking at various plugins that have similar functionality but my initial problem is finding a plugin made to work as a widget as well since my theme is using widgets. Any chance to make this work as a widget?
Regards, Veg
Cam
November 25th, 2006 at 5:54 pm
Veg: not anytime soon. I think it would be nice as a widget, but I won’t have time for it until the christmas period.
Usando Plugins en wordpress (1ra parte) at Bitácora Taller Multimedia
November 28th, 2006 at 11:16 am
[…] Plugins destacados Gracias a la investigación de Claudia Rincón para el sitio del Fondo Margot Loyola, destacamos dos plugins para menúes: Collapsing Category Menus Collapsing Page Menus Estos plugins permiten que las categorías de los post y las páginas respectivamente, escondan a sus subcategorías y subpáginas hijas. Sólo cuando uno entra a la categoríoa se desplegan las hijas como pueden ver en el ejemplo que la misma claudia puso en su sitio. Como ven sirbe para no atiborrar de links en los sidebar. Luego se coloca el tag php en una lista (li) del sidebar de la plantilla que esten usando o realmente en la parte que ustedes estimen. […]
Tien
December 1st, 2006 at 7:02 pm
Is there any way to suppress display of categories with zero posts? I have zero uncategorized posts, and don’t want “Uncategorized” showing up in my list of posts.
Great widget otherwise!
peter d
December 4th, 2006 at 4:57 pm
I would like for sub-category’s posts to not appear when I select the category, only those of the parent category itself.
Alex
December 5th, 2006 at 6:52 pm
Cam
Another great plug-in! Thanks.
However, I am having a bit of difficulty getting the sub-categories to appear. I have inserted the call to collapsing_category_menu()exactly as described above. While the parent categories are displaying without any problem, no sub-categories appear underneath when a parent category is clicked on. I have made sure there are sub-categories available.
Any advice you can provide would be much appreciated. Thanks, Alex
Alex
December 6th, 2006 at 3:59 am
I’m still having difficulty with this. I’ve tried everything I can think of.
At the beginning of the day I had three strands of hair on my head - I’m sure there is only one or two now!
Help appreciated. Thanks.
Cam
December 6th, 2006 at 9:41 am
peter d: unfortunately, that’s a wordpress issue; this plugin doesn’t actually display your posts, it just navigates to the category page. You’ll need to modify your archive.php template to do what you need.
Alex: send me your template page and a link to your site. With the information you’ve given me, I can only guess (cam AT sporkfancier DOT com).
Luke
December 6th, 2006 at 2:25 pm
This appears to be a wonderful tool.
Alas, I’m having the same problem as Alex, I think.
The plug-in makes the categories appear in the sidebar, but they don’t open up at all. Any idea after taking a look at Alex’s?
Thanks for your hard work.
Alex
December 7th, 2006 at 1:46 am
Hi Cam
I sent you an email with my site details.
Cheers, Alex
Airlock - blogs
December 7th, 2006 at 5:36 am
[…] We used the Sporkfancier collapsing menus for our sidebar but for some reason, possibly intentional, when at the index page the category where the last post was made wouldn’t collapse. […]
Cam
December 7th, 2006 at 11:29 am
Hi Alex:
I haven’t received your information.
Did you spell sporkfancier correctly?
Cam
Alex
December 12th, 2006 at 4:19 am
Hi Cam - I guess you must be pretty busy at the moment… when you do get some free time I’d really appreciate some help getting the collapsing categories to work… It’s a very cool extension that, in my opinion, adds a real professional touch to a site
Cam
December 12th, 2006 at 10:06 am
Hi Alex & Luke:
The problem is that the $post value is compromised in your templates. In Alex\’s case, it is the \”Latest Articles\” box, which creates a WordPress \”the Loop\”. You\’ll notice, Alex, that I moved the expanding categories box above the Latest Articles box, and it works fine.
In essence, you\’ll need to use the $current_id parameter that I\’ve provided to give the current category id. To get it, at the top of your sidebar.php file (or wherever you\’ve put it), you\’ll need the following code snippet:
< ?php
$current_cat = get_the_category();
$current_cat = $current_cat[0];
?>
Then, when you call the collapsing category menu function, it should look something like this:
< ?php
collapsing_category_menu ( 0, \'cat_name\', \'ASC\', \'page_item\', \'current_page_item\', $current_cat->cat_ID );
?>
Good luck!
Alex
December 12th, 2006 at 12:37 pm
Hi Cam
Brilliant!!!!!!
Thank you very much for helping me to resolve my problem. And you’re quite right - it was a problem with my template, as just prior to you having a look at my site I tried it with the default template, Kubrick (and others) and your plug-in worked flawlessly. Sorry - I should have tried this earlier - inexperience on my part!
In my opinion, this is simply the best plug-in for Wordpress available. You’ve done a fantastic job with it and I look forward to my site looking far more professional as a result.
Once again, thank you very much Cam.
Cheers, Alex
Franck
December 13th, 2006 at 11:53 am
Hi man, the example seems to be good, but when I put the code on my website I don’t have an expanded tree of the categories!!! Only the list!!! (See on the left, only 3 cat - non classé - Road2fusion.com and its child Peoplesoft) What is th benefit!!! I think I don’t understand something
Cam
December 13th, 2006 at 12:04 pm
Franck: Le plugin semble fonctionner correctement. Si vous cliquez “Non classé”, le “Peoplesoft” ne montre pas. Si vous cliquez “road2fusion.com”, le “peoplesoft” apparaît. Votre site-web semble y avoir un certain nombre de liens cassés, de catégories doubles, et d’autres curiosités, cependant; Je suspecte que vos problèmes se situent dans d’autres secteurs.
Ma première langue n’est pas française; je vous pris de m’excuser si j’ai fait des erreurs grammaticales.
Alex
December 13th, 2006 at 2:24 pm
Hi Cam
I am trying to apply css styles to the menu. I note that when I “view source” the class applied to the current category item appears as follows:
The problem with this is that, because of the blank space in between category_item and current_category_item, it’s not possible to style (i.e. target) the current category to give it a unique look.
I’ve tried using different arguments in the call to collapsing_category_menu() but for some reason the current category always seems to append the standard category item class with the current category item class.
Is there some way of overcoming this so that a style can be uniquely applied to just the current category?
Thanks in advance, Alex.
Alex
December 13th, 2006 at 2:26 pm
brackets removed in this post, it appears like this:
li class = category_item current_category_item
Cam
December 13th, 2006 at 2:29 pm
Alex: Just have .current_category_item *after* .category_item in your CSS. Then you can style current_category_item however you wish, including removing any styling from .category_item.
Franck
December 14th, 2006 at 3:16 am
Thanks for your answer but! The thing I would like is to expand and collapse categories without open a new page!!! Is your plugin able to do that?
Cam
December 14th, 2006 at 9:21 am
Franck: No, my plugin doesn’t do that. You could accomplish this with CSS and Javascript using the existing wp_list_cats function though. Essentially, you’ll just need to create nested IDs for your <ul> tags and have onClick parameters on your menu links that hide and show the child <ul> tags.
Alex
December 14th, 2006 at 2:39 pm
Cam
Thanks for the explanation. Actually having both css classes together is a really neat feature once you know how to use them.
I’m just thinking - if you need a hand with putting together a FAQ for your plug-in, I’d be happy to help! I’ve probably asked my fare share of noob questions that you’re probably keen not to answer over and over again. So I’m probably well positioned to think like a user with very limited knowledge.
Once again, thanks very much!
Cheers, Alex
Alex
December 17th, 2006 at 3:43 am
Cam
Is there any way known to change the order of the categories. Currently, they appear in alphabetical order, but I’d love to change the order into something more logical to fit in with my topics…
Cheers, Alex
Cam
December 17th, 2006 at 8:44 pm
Alex: That’s what the second parameter in the function call is for. You can use any of the following as values:
cat_ID
cat_name (the default)
category_nicename
category_description
category_parent
category_count
Best, Cam
Alex
December 18th, 2006 at 2:12 pm
Nice one - this plug-in has been better designed and thought-out than I could have imagined. Every question I’ve asked seems to have been thought about and included in its design!
Cam
December 18th, 2006 at 2:19 pm
Well, that’s very kind of you to say, Alex. Cheers!
Alex
December 19th, 2006 at 3:53 am
Cam
I’ve run into one potentially major problem which is causing me much frustration. I’ve tried everything I can think of myself to find a fix without any success.
When a category opens up and enables a user to select a subcategory, using wordpress’s pretty permalinks, the url becomes:
mysite.com/category/subcategory
So far, so good - all of the relevant posts relating to the subcategory appear as expected.
However, when a user clicks on one of the posts appearing on the subcategory page the menu collapses and wordpress brings up the following url:
mysite.com/postname
This means that the user no longer sees the category and subcategory within which the post resides. I think this may potentially confuse users given that it results in them losing their navigational bearings.
Is there any way to keep the menu open while a post is being displayed? I think this might require having urls in the following form:
mysite.com/category/subcategory/postname
This would mean that the menu would stay open (I think) and the user would be able to easily return to either the posts from the subcategory they were just at, or an alternative subcategory within the same parent category.
Would really appreciate some advice on this one - it’s a tough one!!!
Cheers
Alex
Cam
December 19th, 2006 at 7:41 am
Alex: You’re going to need to set your permalinks to that structure in Options > Permalinks. I think the structure you want is /%category%/%postname% but you’ll want to double-check that. Since my plugins just use the provided permalink, it doesn’t actually have anything to do with the plugin. Check out: http://codex.wordpress.org/Using_Permalinks . Good luck!
Alex
December 20th, 2006 at 3:53 am
Cam
Thanks for your reply but I don’t think I explained myself well enough. I’m not too concerned about the permalink situation.
What I am really trying to achieve, when a user views a post, is a situation whereby the menu displays the category and subcategories relating to that particular post.
For example, in the tops-chools.com site, when a user selects from the LHS menu “Top Schools” followed by “Alabama schools”, two schools are presented on the RHS, namely:
1. American College of Computer and Information Sciences; and
2. Clayton College of Natural Health
When a user clicks on, say option 2. Clayton College of Natural Health (i.e. the post relating to this college), the LHS menu collapses meaning that, if a user, instead had meant to select “Arizona Schools”, they have to start over by selecting “Top Schools” followed by “Arizona Schools”.
Instead, what I am trying to achieve is to display the category and sub-categories relating to any post whenever even the post itself is being viewed. So, for the example above this would mean that, while viewing the post relating to “Clayton College of Natural Health”, the menu would be open. That is, “Top Schools” would be open with all subcategories displayed underneath - with an appropriate css style capable of being applied to the subcategory the post was from (in this case, “Alabama Schools”).
I’m no coder - not by any means! But I’ve spent the last couple of days with my Sam’s Learn php in 24 hours trying to work out what I’d need to change to enable me to achieve this (unforunately I think I need to be at least a bit closer toward the end of the book before I have any even slightly realistic chance), but in the code for your plug-in I noticed something which I think looks like doing this (or close to achieving it). The code I’m talking about is the elseif that looks at when a user is viewing a page:
else if($post->ID)
{
$cat=$wpdb->get_results(SELECT * FROM $wpdb->post2cat WHERE post_id=$post->ID LIMIT 1″);
and then assigns this category-id to the current_id so that the menu can be developed subsequently.
I’m not too sure if I am on the right track and if what I am trying to achieve is possible or not.
But real keen to hear back on this one.
Cheers mate - Alex
Cam
December 20th, 2006 at 8:59 am
Alex: you’ll need to set up an if/else conditional that uses the is_single() function. If is_single() returns true, you’ll need to provide the category ID for the collapsing_category_menu() function. You can get the category ID using the code below.
$cat = get_the_category(); $cat = $cat[0]; echo $cat->category_ID;Obviously, instead of using echo, you’ll want to put $cat->category_ID as the $current_ID parameter in the collapsing_category_menu() function.
WP Collapsing Category Plugins | 泡沫
December 24th, 2006 at 11:54 pm
[…] http://sporkfancier.com/collapsing-category-menus-plugin These icons link to social bookmarking sites where readers can share and discover new web pages. […]
KL
January 1st, 2007 at 12:40 pm
Cam, many thanks for your work on the collapsing Categories feature. Reading all the comments above, it sure seems like a lot of people are really happy with it.
I think I’m in the same situation as Veg (Nov 25, 06). My theme, Tiga, uses widgets (e.g., left-widget for Categories). I just want to confirm that I won’t be able to use your plug-in at this time.
Thanks again.
Cam
January 1st, 2007 at 1:04 pm
KL: Unfortunately, at this time, I haven’t made it as a widget. I suspect it’ll port really, really easily, but I haven’t had time to investigate it
KL
January 2nd, 2007 at 8:10 pm
No worries, Cam. I’ll check back in the future, just in case.
Thanks again.
Rodrigo Peñalba
January 7th, 2007 at 9:26 pm
Great plugin, i used it at www.barricada.com.ni , now my sidebar looks cleaner
Alex
January 16th, 2007 at 3:59 am
Hi Cam
Was just wondering if Collapsing Categories will work with Wordpress 2.1. I noticed that there is a list showing which plugins do and don’t work with 2.1.
The list is available here: http://codex.wordpress.org/User:Spencerp/2.1_Plugin_Compatibility
Look forward to hearing from you.
Cheers
Alex
Patty’s Blog » Archive » go
January 17th, 2007 at 9:29 am
[…] The following Plugins assist with the navigation elements on your site, including various lists of your post entries, creating a table of contents for longer posts, moving from the next and previous entries, and much more. […] Collapsing Category Menus (http://sporkfancier.com/collapsing-category-menus-plugin) Generates a collapsing menu of your site categories as an unordered list with the current category and its ancestors highlighted with a css class. Allows for display of only categories under a specified parent. Collapsing Page Menus (http://sporkfancier.com/collapsing-page-menus-plugin) Generates a collapsing menu of your site pages as an unordered list with the current page and its ancestors highlighted with a css class. Allows for display of only pages under a specified parent. […]
Dominique
January 26th, 2007 at 3:44 am
Hey, you have a great tool provided for me. I am building a lot of pages inside Wordpress and to keep it nice your tool is the perfect solution! But my question is, if it can show ONLY the sub pages. Not the first page.
Like:
http://www.url.com/firstpage
http://www.url.com/firstpage/secondpage
In your menu i only want the second page and so on because the first page is allready at the top of my website placed in a banner. (www.gouden-zon.nl). I hoop you understand what i mean.
The next problem is that when i click on a sub,sub page: the link in your menu is not ‘active’ (fat and red) anymore. how can i fix this?
Thanks for your support
Greetings
Dominique
January 26th, 2007 at 3:51 am
(sorry for the double post)..
to help you understand:
when i go to http://www.url.com/page/ i only want to see its subpages in your menu. I dont want to see any other parent pages. But!, when i go to http://www.url.com/page/subpage/subpage i want to see still the same as i go to the first parent page.
http://www.url.com/page/
other page (
Cam
January 26th, 2007 at 10:42 am
Dominique:
I understand perfectly (though you posted this comment on the *Category* plugin). Basically, you just need to use the function’s first parameter, $root_id, to whatever parent page it is you want the subpages of. So, in your example, if /page/ is ID 12, the function call would be
collapsing_page_menu(12);
Regarding your second issue, I’ve created a “reloaded” version of the plugin that addresses that issue, but I haven’t finalized it yet. When things get less crazy ’round here, I’ll upload a new version.
Editor, NursesJobLinks.com
January 26th, 2007 at 11:17 am
I upgraded to WP 2.1 and found out that your Collapsing Category Menu plugin won’t display the 3rd and so on subcategories. Check out http://www.nursesjoblinks.com to understand the plugin’s problem better.
Hope you can fix this to make it functional with WP 2.1. Thanks.
Cristian
January 29th, 2007 at 3:31 am
i’ve found your plugin, it works great under non-widget themes, but under widget theme, it doesn’t works… please, help me…
Cam
January 29th, 2007 at 9:15 am
For those of you using widget themes, try passing the function the $current_id (the last parameter). That’s the current category ID. The problem is that other functions/plugins/widgets compromise the $post variable (also known as bad programming). To find the current post, use the code described above.
Mishka
January 29th, 2007 at 8:15 pm
Hi Cam,
This plugin is very nice. I am however, having a slight problem. It is taking the category from the top posted item and using that for the menu. On my archive and home pages, I would like to specify which category they are in myself.
For example, if you go to the site below (Hiding Menus underneath the main menus), the front page, shows an expanded England, London & Southwest, then Berkshire. For the home page, I would like nothing expanded, just the top levels, i.e. England, Scotland, Wales, etc.
http://motorhome-hire-association.com/travel/
On the inside pages, i.e Midlands, Midlands should be highlighted, not the sub-category corresponding to the first post’s sub.
Thanks in advance,
Michele
Cam
January 29th, 2007 at 10:03 pm
Mishka: you’ll need to pass the function the $current_id parameter. Outside of “the loop”, you’ll need to call the get_the_category() function and use it to get the current category ID (rather than the category of the first post):
Obviously, the above would need to be enclosed within <?php ?> tags.
Guido
February 2nd, 2007 at 12:22 pm
I like the plugin but am looking how to let it work in a horizontal (inline) list. The first line the parent-category items, the next line the child-category items. I think that should be possible?
kim
February 8th, 2007 at 6:38 am
is it possible to make this into a widget?? yes i am using a widget theme… and would love it if this can be…… pllleassse with sugar on top???
thought i ask..
cheers
kim
Jarred
February 11th, 2007 at 4:28 pm
First, I would like to say that I love this! I was spending way too much time trying to figure out what you’ve already done! This is great, and it works very well!
The one question I have is, when I go to the main page, the category with the most recent post is what is expanded in the sidebar. I would like to have no categories expanded on my homepage. I’ve used the following code in my “sidebar.php” page…
————————
cat_ID”;
echo collapsing_category_menu ( 0, ‘cat_name’, ‘ASC’, ‘page_item’, ‘current_page_item’, $current_cat->cat_ID ); ?>
————————
The echo command returns the category ID for the category with the most recent post on the homepage. How do I pass the collapsing_category_menu function the ID of the homepage? Or am I doing this all wrong?
I know you’re probably very busy, and I really appreciate any time you can give me!
Thanks,
Jarred
Cam
February 11th, 2007 at 4:35 pm
Jarred: for the last parameter (the current_id parameter) on the homepage, just use a -1 or 99999 or similar nonsense number.
Cam
Sharon
February 12th, 2007 at 9:48 pm
can you look at my menu… i would like all the categories to be collapsed like what jarred said… how can i get this? where do i add this code… also have a click around for some reason in Firefox the menu with this function goes off the screen? its weird… i hope you know what i mean.. click the menu?
Jarred
February 12th, 2007 at 11:11 pm
Cam,
Thanks for the response, it’s nice to know that someone actually responds when you ask for assistance. I realize you’re probably crazy busy, so once again, I appreciate it.
I found a solution that I thought I’d share with you…
In the links area of sidebar.php, there’s an if statement that says if (is_home). This checks to see if the page is the homepage. I used this same function is_home() to see if the current page was the homepage. If it is, I pass a nonsensical number to the collapsing_cateogry_menu function in the current_id parameter. Otherwise, I pass the regular ID, and this seems to be working just fine so far.
Again, thanks for your help, if you hadn’t mentioned what you did, I wouldn’t have thought about what I did.
You have a truly great product.
Thanks,
Jarred
Cam
February 13th, 2007 at 10:44 am
Jarred: Exactly. Nice work.
Sharon: where is your menu?
Lynx
February 18th, 2007 at 12:46 pm
nice one, thnx for it plugin, we may be implementing it for our site blog!
Dominique
February 19th, 2007 at 4:20 am
Hi, Cam,
Thanks for your support. I hope it comes out soon, because i really need it :P. I visit the site frequent to see if it has been uploaded. But, if you want to pleasure me; can you email the version ? My email is provided with this message.
Thank you!
P
March 24th, 2007 at 9:35 am
Thanks for the great plugin! It took me a while to fiddle around with it but now it’s working pretty well.
I was wondering if there’s a way to make a static post to show up when the user clicks on a category. Sort of like a welcome to this category post. Right now when they click on teh category, it’ll show the latest posts in the category. Is there a way to do this? Thanks!
Cam
March 25th, 2007 at 3:23 pm
P: you’ll want to make a category.php theme file, much like your index.php file. In that theme file, you can do a number of things to achieve the effect you want. The one I’d recommend is using the optional category description. Basically, above the loop in the category.php file, you’ll add in a call to category_description(). [see http://codex.wordpress.org/Template_Tags/category_description]
The WordPress codex has a great page on creating category templates here: http://codex.wordpress.org/Category_Templates
P
March 25th, 2007 at 9:13 pm
Cam,
Sounds a bit complicated…I’ll look into it when I find the time. Thanks for the great plugin!
angie
May 6th, 2007 at 5:49 am
dear cam,
thanks for this great plugin. It can handle subsubcats and produces correct tags!
I would love to exclude 4 cats from the list. is there a way to do that? thank you very much for your help!
angie
angie
May 6th, 2007 at 6:25 am
dear cam
resolved! I put an if after the foreach
foreach ( $cats as $cat ) {
if(($cat->cat_name!=’Blogroll’) && ($cat->cat_name!=’Design’) && ($cat->cat_name!=’Highlights’) && ($cat->cat_name!=’News’)){
…
Michael Brandon
July 20th, 2007 at 5:35 pm
Hi - could you please update the link from top-schools.com to the-top-schools.com.
Had a few issues with Google, and so decided to have a fresh start with the rankings.
Steve
July 26th, 2007 at 4:17 pm
Cam,
I now that that you are busy but could you write out the whole command Jarod was talking about on how to keep the home page from expanding in the last posted category…I have tried to wrap my head around it but can not.
Thanks
Steve
Cam
July 26th, 2007 at 4:35 pm
Nope, sorry. If this is something you need, I’m available for freelance contracting.
Florian
August 7th, 2007 at 4:59 pm
Hi all,
I just installed the plugin, but the collapsing category list does not work as it should. When I click on a category, the sub-category of another category will be opened. Some categories don’t open at all their sub-categories. I applied the fix described here a few times using this code
$cat = get_the_category();
$cat = $cat[0];
collapsing_category_menu ( 0, ‘cat_name’, ‘ASC’, ‘page_item’, ‘current_page_item’, $cat->category_ID );
The problem becomes better but it isn’t solved. Some categories continue not to open their sub-category-list. Furthermore, when I open a subcategory, it’s subcategories are not shown too.
Thank you in advance for any Hints
Why?
David
October 4th, 2007 at 8:03 am
I have blog and this pugin work grat for my blog
RHO
October 10th, 2007 at 6:05 am
Hi all
I used this plugin on another blog and it worked well.
No I tried to insert it to a new Blog under WP 2.3 but I always get some errors.
Ok, here is what i made.
- I activated the plugin
- I put the code “” in the sidebar.php
and the error says:
”
WordPress database error: [Table ‘20596_wp.wp_post2cat’ doesn’t exist]
SELECT * FROM wp_post2cat WHERE post_id=44 LIMIT 1
WordPress database error: [Table ‘20596_wp.wp_categories’ doesn’t exist]
SELECT * FROM wp_categories WHERE category_parent=0 ORDER BY cat_name ASC
”
Can anyone help me out to get that fixed?
Thanks alot
RHO
David Szpunar
October 12th, 2007 at 12:00 pm
RHO,
WordPress 2.3 changes the Category tables under the hood, see http://boren.nu/archives/2007/08/26/wordpress-23-taxonomy-schema/ for a technical description. But the tables that this plugin relies on are gone (wp_post2cat and wp_categories), which is why you are seeing those errors.
I have been hunting all morning for a plugin like this that will work with WordPress 2.3 but I haven’t found one that has been updated to work with the new database structure yet, unfortunately.
~David Szpunar
David Szpunar
October 12th, 2007 at 12:02 pm
There is actually a more official list of the database changes here: http://codex.wordpress.org/index.php?title=Version_2.3:New_Taxonomy
Lyle Waggoner
November 8th, 2007 at 5:34 am
I’ve had the same issues as RHO and David Szpunar since I upgraded to WP v2.3. FWIW, I put the wp_post2cat and wp_categories tables back (from a backup of my database) and it doesn’t seem to break anything new, while restoring the Collapsing Category Menus plugin to a working condition. I’m not sure how it would react to adding new categories though - I have no need to do this, so I thought, why not.
Hopefully this info might be useful to somebody, in lieu of a new version of what is a great and very useful plugin.
beachbum
November 10th, 2007 at 1:12 pm
would be nice if this plugin gets upgrade. it came in very handy. I cannot find anything else like ti either.
Leave a Reply