Please deactivate before upgrading, then re-activate the plugin.
The collapsing categories plugin creates a list of all categories, subcategories, and posts, which can be expanded and collapsed dynamically, as you can see in the sidebar on this page.
The plugin is hosted on the official wordpress repository at: http://wordpress.org/extend/plugins/collapsing-categories
If you have any questions, bug reports, or feature requests, please visit the Frequently Asked Questions, and at the other comments here (find is your friend)).
Your appreciation
If you really like my plugins, please give them a nice ranking in the wordpress plugin repository (links above), or you can send me a donation via paypal below:
Collapsing Categories creates an expandable list of categories and
subcategories. It can also expand to show posts. The primary usage is as a
widget, but you can also use the code in your theme manually if you wish (see
installation instructions)
= What’s New?=
-
2.0.2 (2011.11.01)
- removed link to spammy site
-
2.0.1 (2011.08.08)
- fixed include category option
-
2.0 (2011.07.29)
- Can now use custom taxonomies
- Don’t display any tags for title if title is empty
- Easier style handling
- Updated settings page
- Fixed bug with extraneous li when not showing posts (thanks neoen for
pointing it out) - Fixed bugs with styling in IE
- Added option to show empty categories
- Added accordion option
- Added ability to sort posts by menu order
Style changes
Version 2.0 introduces a simpler method for styling widgets, and each widget
can be styled separately. Several options are included. If you don’t like
those options, you can also use your own css in your theme.
Download
Latest version: Download Collapsing Categories v2.0.2 [zip]
Installation
IMPORTANT!
Please deactivate before upgrading, then re-activate the plugin.
Unpackage contents to wp-content/plugins/ so that the files are in a
collapsing-categories directory.
Widget installation
Activate the plugin, then simply go the
Presentation > Widgets section and drag over the Collapsing Categories Widget.
Manual installation
Activate the plugin, then insert the following into your template: (probably
in sidebar.php). See the Options section for more information on specifying
options.
<?php
echo "<ul class='collapsCatList'>\n";
if (function_exists('collapsCat')) {
collapsCat();
} else {
wp_get_categories('your_options_here');
}
echo "</ul>\n";
?>
FAQ
Q. How do I use different symbols for collapsing and expanding?
A. If you want to use images, you can upload your own images to
http://yourblogaddress/wp-content/plugins/collapsing-categories/img/collapse.gif
and expand.gif
There is an option for this.
Q. I have selected a category to expand by default, but it doesn’t seem to work
A. If you select a sub-category to expand by default, but not the parent
category, you will not see the sub-category expanded until you expand the
parent category. You probably want to add both the parent and the
sub-category into the expand by default list.
Q. I can’t get including or excluding to work
A. Make sure you specify category names, not ids.
= There seems to be a newline between the collapsing/expanding symbol and the
category name. How do I fix this? =
If your theme has some css that says something like
sidebar li a {display:block}
that is the problem.
You probably want to add a float:left to the .sym class
Q. No categories are showing up! What’s wrong?”
A. Are you using categories or tags? By default, collapsing categories only lists
categories. Please check the options in the settings page (or in the widget if
you are using the widget)
Q. How do I change the style of the collapsing categories lists?
A. As of version 2.0, there are several default styles that come with
collapsing-categories. You can choose from these in the widget settings , or you
can create your own custom style. A good strategy is to choose a default, then
modify it slightly to your needs.
The following classes are used:
* collapsing – applied to all ul and li elements
* categories – applied to all ul and li elements
* list – applied to the top-level ul
* item – applied to each li which has no sub-elements
* expand – applied to a category which can be expanded (is currently
collapsed)
* collapse – applied to a category which can be collapsed (is currently
expanded)
* sym – class for the expanding / collapsing symbol
An example:
<ul id='widget-collapscat-15-top ' class='collapsing categories list'>
<li class='collapsing categories post'><a
href='http://mysite.com/your-website/about-your-own-site/'
title='About your own site'>About your own site</a>
</li>
<li class='collapsing categories'><span class='collapsing categories expand'
onclick='expandCollapse(event, "▶","▼", 1, "collapsing categories"); return
false'><span class='sym'>▶</span>Web hosting</span>
<ul id='collapsCat-176-15' style="display:none">
<li class='collapsing categories post'><a
href='http://mysite.com/your-website/web-hosting/about-webhosting/'
title='About webhosting'>About webhosting</a>
</li>
<li class='collapsing categories post'><a
href='http://mysite.com/products/webhosting-1/'
title='Webhosting #1'>Webhosting #1</a>
</li>
<li class='collapsing categories post'><a
href='http://mysite.com/products/webhosting-2/'
title='Webhosting #2'>Webhosting #2</a>
</li>
</ul>
</li> <!-- ending subcategory -->
Changelog
2.0.2 (2011.11.01)
- removed link to spammy site
2.0.1 (2011.08.08)
- fixed include category option
2.0 (2011.07.29)
- Can now use custom taxonomies
- Don’t display any tags for title if title is empty
- Easier style handling
- Updated settings page
- Fixed bug with extraneous li when not showing posts (thanks neoen for
pointing it out) - Fixed bugs with styling in IE
- Added option to show empty categories
- Added accordion option
- Added ability to sort posts by menu order
1.2.2 (2010.08.05)
- fixed self class for category archive pages (error pointed out by ltache)
1.2.1 (2010.07.25)
- Fixed bug where top-level categories did not show up if only had posts in
sub-sub categories. - Fixed post counting errors
1.2 (2010.06.18)
- Added option to automatically expand categories to which a post is
assigned on single post pages - Storing posts in a javascript array and only adding to the DOM when
requested (speeds page load) - fixed bug where empty subcategory with non-empty subsubcategory doesn’t
show up
1.1.1 (2010.01.28)
- Added option to display posts before categories
- Fixed bug with assigning self class to posts in sub-categories
- Refactored code to reduce number of database reads when using multiple
instances of the widget - Switched from scriptaculous to jquery. No longer conflicts with plugins
which use mootools (e.g. featured content gallery) - Changed css class called “post” to “item” to avoid conflicts with other
commonly used css classes
1.1 (2010.01.03)
- Bug fixes
- Fixed xhtml validation error (thanks Mathie)
- Fixed incorrect link bug (thanks andydv)
- Fixed some css issues
- Manual version works even if no options are given
- Fixed include option
- Fixed self class problems
- Fixed link to settings page from widget options (thanks wp.Man)
- Fixed rss options (thanks wp.Man)
- New options and features
- Added option to hide top level category names
- Changed css classes to make them more consistent with other collapsing
plugins (thanks Bernhard Reiter)
- Internationalization and localization
- Added Russian localization
- Added German localization (thanks Bernhard Reiter)
1.0.2 (2009.07.19)
- Fixed older than option
- Added advanced options section in configuration
- Added advanced option to remember expanding and collapsing for each
visitor (using cookies) - Now issuing a correct id for each ul when using widgets
- Small change in manual installation
- TODO: Added advanced option to expand category when viewing the category
archive page - Permalinks which use author now work correctly
1.0.1 (2009.06.22)
- Fixed some problems with cookies on page load
1.0.beta (2009.06.08)
- Added option to show post date
- Fixed some options that were broken in 1.0.alpha
1.0.alpha (2009.05.01)
- Compatible with wordpress 2.8 widget api (incompatible with 2.7.1 and
earlier) - Can now add options manually when using manually instead of widget
- When using tags, link now points to correct location
0.9.8 (2009.04.17)
- Fixed triangle problem
0.9.7 (2009.04.16)
- fixed a few bugs introduced in 0.9.6
0.9.6 (2009.04.15)
- Added option to group posts into misc category
- Switched role handling to proper API use (to control whether or not the
settings page shows up) - Added option for custom symbols
- No longer requires footer
- Updated javascript file
- Cleaned up code a bunch
0.9.5 (2009.03.22)
- Fixed some more settings panel issues
- Truncate post title now working for posts in sub-categories
- Works even faster now for blogs with many posts
- Fixed option to show only tags
- Fixed previews for style settings
- Categories which do not have any posts due to date exclusion no longer
show up - Restored compatibility with my category order plugin
- Better internationalization support
0.9.4 (2009.03.09)
- Fixed issue with multiple instances
0.9.3 (2009.03.08)
- Fixed links to sub-categories
0.9.2 (2009.03.07)
- Tweaked default style
- Fixed bug when not using permalinks
0.9.1 (2009.03.02)
- Fixed bug where top level categories would not be displayed if they
have no subcategories, and show only sub-categories is selected - Can leave sidebar ID option blank if desired
0.9 (2009.03.01)
- Added option to exclude posts older than certain number of days
- Widened widget options interface
- Updated text of widget options some
* Categories no longer get nested if for some reasons there are no posts
showing up for a category
* Added option to exclude post X in categories A and B when either A or B
is excluded - Post count is now more accurate
- Better internationalization for post and category titles
- Added truncate post title option
- Settings panel only available for admin
- fixed settings panel problems
- greatly increased speed for blogs with lots of posts and categories
- added new style selection method
- If current page is in category X, then category X will be expanded
(thanks to Bernhard Reiter)
0.8.5 (2009.01.23)
- fixed settings panel problems
0.8.4 (2009.01.15)
- fixed sql queries, which seems to be working for most people now
- Got rid of empty quotes in query when no in/exclude is used
- Added option to list categories, tags, or both
0.8.3 (2009.01.08)
- Refixed settings page for manual usage
- Changed category query in the hopes that it works for more people
0.8.2: (2009.01.07)
- Added nofollow option
- Added version to javascript
- not loading unnecessary code for admin pages (fixes interference with
akismet stats page - fixed settings page for manual usage
0.8.1 (2009/01/06)
- Finally fixed disappearing widget problem when trying to add to sidebar
- Added debugging option to show the query used and the output
- Moved style option to options page
0.8 (2008/12/08)
- fixed javascript bug where thisli.parentNode was null
- made javascript more flexible so that all collapsing X plugins can share
more code - Now adds default options to database upon activation for use manually
- styling now done through an option
- inline javascript moved to footer for faster page loading
0.7.1 (2008/12/01)
- fixed javascript bug in IE7
0.7 (2008/11/22)
- Cookie handling now affects categories that are expanded by default too
- Can now be used either as a widget or manually
- Got rid of the stupid float left from 0.6.6
0.6.6 (2008/11/21)
- Added a float left to .sym css to make it compatible with more themes
0.6.5 (2008/11/18)
- Now uses cookies to keep categories expanded if they have been clicked on
0.6.4 (2008/11/10)
- Fixed a minor bug in with animation option not being properly set by
default
0.6.3 (2008/10/03)
- Added option to animate expanding and collapsing
- Added option to add rss feeds for each category
0.6.2 (2008/09/11)
- Fixed display of expand and collapse symbols when using images
- Improved font handling and styling of text symbols
0.6.1 (2008/09/01)
- Improved styling so that collapsing and expanding symbols use a
fixed-width font, but category names do not - When using the option to have category names trigger expansion, and not
showing posts, categories with no subcategories now link to the category - Added option to use images instead of html for collapse/expand characters
- +/- now uses UTF-8 encoding instead of html entities (may not work for
pages not encoded in UTF-8
0.6 (2008/08/27)
- Can have multiple instances of widgets, each with separate options
- No longer works as non-widget
- All options are stored in one database row
- Added more sorting options
- Added option to include or exclude certain categories
- Added option to expand certain categories by default
- Added option to have category names either link to category archive or to
activate expanding and collapsing
0.5.10 (2008/08/20)
- minor bug fix. Fixed option to optionally show pages
0.5.9 (2008/08/07)
- minor bug fix – added space before category count
- Added option to sort by category (term) order
- Added option to sort by category (term) count (note that it sorts by the
count of the parent category, so categories with many subcategories, but
not many posts themselves will be out of order - Added option to sort posts within categories
0.5.8 (2008/06/15)
0.5.7 (2008/05/23)
- fixed misnamed class in javascript (collapsArch -> collapsCat)
- added font-family definition to css to make it monospace for +/-
- added another option with brackets around the +/-
0.5.6 (2008/05/23)
- fixed bug such that subcategories would not display the expand and
collapse icons - fixed bug that categories with subcategories that have posts, but do not
have posts themselves will be displayed - Thanks to [Andy] (http://www.onkelandy.com/blog) for both of these bug
notices
0.5.5 (2008/05/19)
- fixed bug – html now validates when not displaying posts
- new option – choose between arrows or +- for expanding and collapsing
- tweaked exclude option to function better with collapsing categories
0.5.4
- fixed bug – was using hard-coded wp_ prefix in one SQL query.
Now using $wpdb-> instead
0.5.3
- count is now correct for all subcategories
0.5.2
- Added option to exclude certain categories
- Added option to sort categories by slug
0.5.1
- options in widget seem to work now
- removed duplicate entries due to tag + category
0.5
- Added option to not show posts
- Added option to change title in widget
- Now is condensed into one plugin
0.4.4
- using unicode number codes in css stylesheet
- fixed bug with duplicate entries in subcategories
0.4.3
- nicer list indenting
- re-fixed permalink bug introduced sometime after version 0.3.5
0.4.2
- fixed bug with extraneous
0.4.1
0.4
- Verified to work with wordpress 2.5
- Now has custom styling option through the collapsCat.css stylesheet
- updated screenshots
- moved javascript into collapsCat.php and got rid of separate file
0.3.7
- strips html tags from post titles now
0.3.6
- Fixed bug introduced in version 0.3.5 where all links in a category
pointed to the same post
0.3.5
- Now links should work with all sorts of permalink structures. Thanks to
Krysthora http://krysthora.free.fr/ for finding this bug
0.3.4
- Added option to sort categories by id or name
0.3.3
- fixed bug in headers when collapsCat is not loaded
- fixed a few minor markup issues to make it valid xhtml
0.3.2
- posts now have the class “collapsCatPost” and can be styled with CSS.
Some styling has been added in collapsCat.php - removed list icons in front of triangles
0.3.1
- Added option to make post links to index.php, root, or archive.php, like
collapsing-categories - Fixed link to category listings
0.3
- Now uses only 2 database queries instead of 1 + 2*(count(categories))
- Now supports infinite levels of subcategories
0.2.2:
- Added option to show pages in list or not
0.2.1:
- Added collapsing class to
- s with triangles for CSS styling
- Added style information to make triangles bigger and give a pointer
cursor over them - Added title tags to triangles to indicate functionality
* Checking whether some of the same functionality from collapsing-categories
has already been loaded (for example the javascript file) in order to
avoid redundancy
0.2:
- Changed name from Fancy categories to Collapsing categories
- Changed author from Andrew Rader to Robert Felty
- Added triangles which mark the collapsing and expanding features
That is, clicking on the triangle collapses or expands, while clicking
on a category links to the category list for the said category.
This uses html entities (dings) instead of images, for a variety of
reasons - Lists the titles of posts, instead of just listing subcategories
- Removed the rel=’hide’ and rel=’show’ tags, because they are not xhtml
1.0 compliant. Now uses the CSS classes instead
* MOST IMPORTANTLY — is compatible with both the pre 2.3 database which
uses categories, and the 2.3+ database structure which uses the tag
taxonomy
@Jeff – I have updated the installation instructions in the readme. I know about this issue. A temporary workaround for WP 2.7 is to add the widget, then save, then select “show unused widgets”. It should be there, and you can add it fine from there. I am working on figuring out the real solution, but it is quite elusive.
Rob
firstly,greet plugins
but when i updated all collapsing plugins in 2.7,they seems dont work as a widget…
hi rob, the site isnt live yet at the moment, the error happens on every page the widget is shown on and ie reports an error in the bottom left screen. also it appears the animation is a little buggy at times in ie.
Rob..
When I chose sort by category Term order all of the categories dissappear from the main page
why is that
Hi Rob,
Thanks for updating your read me. I can get the Colalasping Category plugin to work when I select the “show unused widgets” item in the widgets window. The interesting thing I noticed is that I have 6 instances of the widget listed as unused. My guess is that I’ve tried to add the widget 6 times (I didn’t actually count, but that seems about right). If I uninstall the plugin and reinstall it the 6 instances remain which tells me that something is being stored in the database somewhere and not getting removed. Let me know if I can help debug any further.
Rob – Thanks for the great plugin. However, I can’t seem to get it working fully. I can see the collapsed categories, but I cannot expand them. I am running WP2.7 locally on my Mac (creating an overhaul of my existing website before I post it to the web). I am running the very latest (0.8) of your plugin, looks like it was just posted before I downloaded it. I am not using the widget feature. I am just dropping the hook code into my sidebar.php per your suggestion in your documentation. Any suggestions?
@Iraqgoals – I fixed sorting by term order. Please download the development version. It will also be included in 0.8.1, which should come out in a couple weeks.
Rob
Hi Rob, me again
0.8 doesn’t seem to work (for me at least) in IE 6, nor in the latest Firefox (that is, the categories don’t expand).
To be honest, I don’t expect most things to work in Firefox which is why I hardly ever use it, but I usually expect things to work in IE6.
It’s fine in IE7, and the latest releases of Seamonkey, Flock, Opera and Safari.
Best
Philip
@Philip,
interesting. Your site with 0.8 works fine for me in Firefox 3.0.5 and Safari 3. I mostly test on Firefox, and expect things to work there, but less so on IE of any sort. I find developing for IE very difficult, as it doesn’t give you much information. But I like things to work everywhere. You’re not the only one who has reported problems. Hopefully I will be able to figure things out soon.
Rob
Yes, don’t fret too much about Firefox: the problem’s more with me. I’m sure it works fine, but I’ve never worked out how to configure the blasted thing (Firefox, that is) so that simple things like youtube videos will appear ^^. IE6 is more of a pain though as so many people seem to be on it still.
Cheers.
@Philip, seems to work fine for me in IE6. Try a hard page refresh (not from cache), with shift+refresh. It might be that the browser is using a cached version of collapsFunctions.js
Rob
thanks rob i will try it and let you know
Hey Rob – just checking to see if you had any idea why the category list will not expand as I had stated earlier. any help would be greatly appreciated. thanks!
Yes Rob you’re right. A hard page refresh and IE6 is working fine. Even my Firefox is working now!
Happy holidays to you
Philip
@DarrenH – try a hard page refresh (shift + refresh)
If that doesn’t work, send me a link.
Rob
Rob – still not working and unfortunately, I can’t send you a link, because I’m building it locally. Any other suggestions?
First I’d like to say: “Great plugin!”
It works very well on my site: http://www.voodooenvy.com/.
However, I am having an small issue with it. All my categories are duplicated on the page. How can I fix this?
I am using the following code on my sidebar:
if( function_exists('collapsCat') ) {
collapsCat('%i%');
} else {
echo "\n";
wp_list_categories();
echo "\n";
}
?>
I was using the wp_get_categories option before, but I kept getting an error message, so i used the wp_list_categories instead and it works fine.
@Jessie,
Nice site! The styling on your collapsing plugins looks great. I am not sure why the categories are showing up twice. Have you modified the code at all? It looks like it is simply printing out each twice. The other possibility is that they might be duplicated in your database. Sorry I am not more help. Let me know if you figure it out.
I will also update the readme file on the installation about the wp_list_categories. Thanks.
Rob
@robfelty,
Thank you so much for your response.
I did check my database out, but I still can’t figure it out. I remember this issue happened even before I updated the plugin.
If I figure it out, I will let you know.
Thanks!
Hi Rob,
This would be wonderful if I could get it working. I installed the plug-in and my template is not-wigitable, so I am using your instructions for manual install – however, it seems to be missing some code… Like maybe a closing bracket – but I don’t know where to put it.
The error is Parse error: syntax error, unexpected ‘}’
What is the correct code for a manual install?
Thanks a bunch! BTW, the wordpress site really fudged up the manual code – but I found it in your readme file. Still no go. Thanks for any help.
Kind regards,
Dave Jackson
It is great plugin that I regard as essential. After updating to WP 2.7 although it still works in existing WP setups I cannot get it to install in the Widget page in admin.
I click to add and it moves over to the right hand side but when I press Save Changes it vanishes off the right hand side again and does not appear on the post page on the site. Interestingly the system thinks it is still there as it is included in the number of widgets used on the Widget page. To reduce the count on the Widget page I have to add it again and then remove it before saving changes.
I have tried this on more than one fresh installation and with different themes.
The WP update was using Fantastico but I have found no other problems – yet!
Any thoughts?
John
Same problems here – I eventually got both Collapsing Categories and Collapsing Links working fine on WP 2.6.3, and they continued to work after I updated to WP 2.7, but as soon as I tried to save settings after another wigdet update, both disappeared from the sidebar. They’re both latest-issue and are both still visible in the list of available widgets, but they won’t stick when I add them to the sidebar. Tried the dev release too but it made no difference.
This is a great shame, because the Collapsers were the best sidebar space-savers that I’d ever used, due to the way that they handled the huge number of links that I have.
Hopefully you’ll come up with a fix soon, Rob.
Cheers,
Stef
@John, @Stef –
I am aware of this issue, and included instructions in the readme for a temporary workaround for wp 2.7. If you select “show unused widgets”, you will see “collapsing categories” there, and if you add it, then save, the changes will stick. I spent about 4 or 5 hours trying to figure this out, but have not figured it out yet. I think it will ultimately take me a day or so, but I probably won’t find that day for another week or two. I apologize for the inconvenience.
@Dave,
This works for me:
I hope it will work for you too.
Rob
Hmmm…
Went to “show unused widgets” and found 20 x Collapsing Links and 20 x Collapsing Archives listed on the left. None of them will add to the “current widgets” column on the right, and there’s no “save changes” button there anyway.
At the bottom of the left column is a bit of code that seems vaguely familiar: %BEG_OF_TITLE%mvp%END_OF_TITLE%
I’ve ditched Collapsing Categories as I no longer need it, but the others are keepers
I’ll wait for a proper fix, but there’s no rush, it’s chill-time!
Cheers for the reply, Rob.
FWIW, I’ve sussed the inability to add from the “unused widgets” screen – I disabled the WordPress.com stats helper plugin ( http://vlad.bailescu.ro/wordpress/plugin-stats-helper-functions-and-widgets/ ) which was responsible for the “mvp” code glitch, and it then allowed adding and saving. After resetting the options in both Collapsing Archives and Links widgets, I reactivated the rogue plugin and it’s all holding together at the moment.
Thanks for reply Rob. Must try reading Readme.txt files in future :-( . Good news is that it worked. Great! I only found 13 unused CC links! Not complaining, I’m just happy. I must learn to do a manual install.
Liked your recipies (& philosophy) as another 95% vegan. I regularly do a simple humous with loads of garlic ;-) – will try yours. Will try rye bread once I succeed in making a starter that works.
John
I recently upgraded and now I am not able to see the categories on my sidebar even though they are there in the widget area in Admin. Hopefully a fix can be found soon, I do like this plugin.
John
Hi there! Happy New Year!
Sorry to say, but I had to deactivate collapsing categories because it kept giving me a double entry for my categories. As soon as I did that, my categories seemed to work fine.
What do you think the issue is. I did check the database and that seemed to be okay as well. I’ve looked at the code and I just can’t figure it out…. help?
http://voodooenvy.com
Hi :)
Your plugin sounds great so I installed it :)
But each time I configure the widget, it turn back by itself back from the list of widget of the sidbar :(
I ‘m at servage.net hoster, autoinstalled wordpress 2.6.2 but somewhere I saw an automatic analyser telling me 2.7 …
please is there any suggestion?
@John,
Sorry you are having problems. I can’t really offer much advice without seeing your problems in action. I like to keep a test site where I can test out new plugins (and develop my own), which uses much of the same database as my real blog. I would be happy to help you if you set up a test site.
@Jessie,
Since you seem to be comfortable with looking at the code, try inserting the following debugging code into the collapscatlist.php file on line 325 or so (right after the 2 “get_results” functions).
echo "$postquery\n";
print_r($posts);
echo "$catquery\n";
print_r($categories);
echo "</pre>";
This will show you exactly what the database query is and the results of it. If you see doubles here, then there must be something to do with the database (or the query).
@LouLou,
See the installation instructios in the readme.txt file. There is a workaround for this in WP 2.7
oh god, thanks for your answer but i’m absolutly new in wordpress and does not know at all all about php
each time I have a bug with my wordpress, I take 2 days to correct it and connection is very expensive here in lebanon, so very very thanks for your ideas, But i’m too afraid of making a mistake and taking much much time to resolve it :)
in all case, your widget was a great cute idea :)
I was using CC with WP 2.6 and it worked well. Upgraded to WP 2.7 and CC .8 and now I can’t get CC to work (list of categories do not show up in the CC widget area of the sidebar). I tried the “show unused widgets” trick but this did not help. Tried deactivate/reactivate, uninstall and reinstall, but no luck.
In the widget area, for some reason there are (8) CC widgets being unused.
Would like to try the following but need to know exactly where (between what other code) I should put this following code into the sidebar.php file:
——
<?php
if (function_exists(‘collapsCat’)) {
collapsCat(‘%i%’)
} else {
echo “\n”;
wp_get_categories(your_options_here);
echo “\n”;
?>
——–
Thanks for any help. Really enjoyed the plug in when I had WP 2.6. Hope to get it working again. Cheers and happy new year
Jay
Hello,
i have a one issue. I have WP 2.7 and latest plugins Collapsing Categories and Archives. But two weeks ago collapsing categories started just showing the name of the widget and no categories. So i dissabled the widget and enabled again but it started to disapper from the active widget list after i saved changes. So i deactivated the plugin and deleted it from ftp. I went to wordpress.org, downloaded it again, extracted it again to my wordpress plugins folder, then went to plugins page in wordpress admin area but it is not showing there. Neither it is not showing on FTP after, so it seems that WP is deleting it by itself :-( any ideas ? Thanks for any help. Best regards
So i get it work like it was. It is showing just name of the widget at the main page of my blog, but no categories inside. When i look into widgets managing at WP i can see 5 unused widgets of Collapsing Categories, which i tried to appear at the main page but it was constantly disappearing :-( any suggestions ?
@Watson,
After selecting “show unused widgets”, did you try adding one of those 8 collapsing categories widgets to the sidebar, then clicking on “save changes”? That is what works for me. Sorry if the instructions weren’t clear.
@Anaxagoras,
What sort of settings do you have for collapsing categories? Collapsing Archives seems to be working okay on your site.
Rob
Hi Rob,
Yes I did add one (and tried more than one) of the CC widgets to the sidebar. Like others have mentioned here, the widget in the sidebar only showed the name of the widget and no categories were listed inside (below the widget name). I tried a combination of options inside the CC widget with no progress.
Settings: show post count, sort by category name, sort posts by date, expanding shows sub categories and posts, clicking links to archives, auto expand = blank, include/exclude = blank (note: would like all categories to be included and have tried to manually include with cat names but no progress) , animate = off, include RSS = none, style info = blank.
Still no progress. Do I need to enter any code in my sidebar.php file? If so exactly where should I try to put this info (which lines)? Thanks for any help.
Rob,
I decided to give a couple of your other plugins a go, once I got the Collapsing Links working the way I wanted. I installed Categories, placed the widget in my sidebar and it shows up. But it has all of my categories nested under each other. Since I only have 2 child categories, this doesn’t make much sense.
Also, I have your Collapsing Links, Archives (Working well, BTW), and Categories in the same sidebar. If the Archives widget is below the Categories widget, the Archives do not show up in the sidebar at all. If the Category widget is on the bottom, both show up, but the Categories are messed up as I mentioned and the text widget I have at the bottom of the sidebar is added to the Category lists. And I can not get posts to show up under any of the categories, no matter how I set the options.
Hi,
I use collapsing archives and categories. The first is working well (and thanks for folding in my fix for a sparse year), but collapsing categories is failing to produce any rows. So, I turned on debugging. The failure appears to be at:
However, I saw categories before recent upgrades, and my posts say they are categorized.
-mitch
I’m trying to use Collapsing Categories manually and find that I cannot change the options for it under Settings — I can select the various form items, but when I “Update options”, none of the changes stick except for what is in the Style info box. (I’m using version 0.8.1 under WP 2.7, Widget mode works fine).
Also, I think your manual installation code is missing a semi-colon and a curly bracket, I beleive it should be:
if (function_exists('collapsCat')) {
collapsCat('%i%'); /* added semi-colon */
} else {
echo "<ul>\n";
wp_get_categories(your_options_here);
echo "</ul>\n";
} /* added curly bracket */
?>
Hmmm… not sure what happened to my code up above, but Jessie Angel’s first post on Dec 26 does show the properly corrected code.
Update…
I installed 0.7.1 and that seems to work fine in a manual mode. I would like to try 0.8 too, but that does not appear anymore at wordpress.org. (I did also try the development version, but that worked the same as 0.8.1)
@Mitch,
I just released a few more bug fixes in 0.8.2. (should be on the wordpress site soon). It looks like it might have something to do with excluding or including categories. You might try playing with those options
@Jerome,
For nice code, use lang=’php’ (or whatever language you are using). I should put a note about that in the comments.
That is weird that 0.8 seems to have vanished.
I fixed the manual settings in 0.8.2
Rob
I just got frustrated playing with include / exclude. I tried each with the field blank, I tried exclude “Uncategorized” and then tried silly things just to see if I can get anything to show.
Looking at the SQL I posted, I was wondering. Did you really intend to create “WHERE wp_terms.term_id = wp_term_taxonomy.term_id = wp_term_relationships.object_id”, a three-way equals, as the first AND term? I am surprised MySQL even parsed it.
Awaiting 0.8.2′s arrival as an auto-upgrade….
-mitch
Rob
I upgraded to CC 0.8.2 and still no luck. The CC widget shows up in the sidebar, but only the title shows up. No categories or posts show below. I upgraded automatically. Tired to do a manual install of CC but don’t know where to put the code into my sidebar.php file. The older version of CC and WP 2.6 worked great with an auto install. No luck since moving to WP 2.7. Any help is appreciated. Thanks
@Mitch,
does the SQL query return anything from the command line? It works fine for me. I’ve fooled around a bit, and the following query also seems to return the right results for me:
@Watson – it is likely that your problem is the same as Mitch’s and that it has something to do with mysql. I think we are making progress.
Rob
Humn I spoke too soon. 0.8.2 is not working in this blog that I am taking over soon hence odd way of writing it http://sdaresourcesADD-DOT-HEREorg/health/
John
i just uploaded the newest version 0.8.2 for collapsing categories and my widget for collapsing categories now is NOT SHOWING.
I have already deactivated the plugin . reactivated.
uninstalled and reinstalled and added it again on my widget
but it’s still NOT SHOWING
please help
John,
The query the plugin produces doesn’t work on the command line. Your query, where the three way comparison is split into two comparisons ANDed together does return results. I don’t know if this is an error, but the results begin as follows, with duplicates:
count
term_id
name
slug
parent
description
7
28
Absolutism
absolutism
3
7
46
Ahavah
ahavah
5
7
46
Ahavah
ahavah
5
5
34
Amidah
amidah
6
7
24
Anavah
anavah
5
7
24
Anavah
anavah
5
5
56
Anger
anger
5
15
47
Audio
audio
0
15
47
Audio
audio
0
3
26
Aveilus
aveilus
5
…
(No, you’re not going nuts or dyslexic, many of the Categories are transliterated Hebrew.)
-mitch
Rob
0.8.2 works beautifully in all blogs where it has not already been installed under previous versions.
What file/file(s) does or can the plugin write to in current and previous versions? I was wondering if legacy code was left somewhere that was causing problems. Anyway I would be interested to check and compare.
Thanks
JohnB
@John,
The problem seems to be with the sql query for categories, and other people are having this problem too. I think I have a solution for it, which I will release soon.
Rob