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
@Mitch,
The reason I used the 3-way equals because otherwise I got some duplicate results, as you mention. Using three separate 2-way equals with AND still returns a few duplicates for me, but then adding a GROUP BY gets rid of them. Obviously the 3-way works fine for me, but apparently it does not work in all versions of mysql. I am not an SQL expert by any means.
I have changed the query in 0.8.3. Hopefully this will work for more people.
Rob
Well we are getting much closer. Two updates in one week that is a lot of work! Nice job Rob. It is now almost working for me.
Problem: After upgrading to CC 0.8.3 the widget now appears in the side bar, but only 4 of my 12 categories show up.
Suggestion: Would be nice if users could click an option to remove or keep the “>>” that shows up the left of their categories. The >> is not needed because of your other expanding icon options.
Jay
@Jay,
Thanks for the encouraging words. There seems to be some issues with the SQL query to grab categories. Both 0.8.2 and 0.8.3 were working fine for me. I want to hear what some other people have to say about 0.8.3. I am hopeful that we can find a query that seems to work for everyone. If there are any SQl wizards listening, I would not turn down some help :)
As far as the option you suggest, there are already so many options, that I don’t want to add a bunch of style-specific options. You can change the style settings from the settings page now. I think the default settings I have should now display the >> before items that expand and collapse, but it should before items which have no subitems.
Rob
Thanks Rob. In the meantime. What line would I remove from the >> from the style settings. Just checked it and didn’t see anything that reads “>>”. Checked a few of your php and css files. Closest thing I found was:
#sidebar li.collapsCat:before {content:”;}
Rob,
I don’t know if my problem is caused by a problem with SQL or not. I don’t do anything beyond CSS and HMTL. But while your Archives and Links plugins work fine for me, the Collapsing Categories is not even close. I have installed 0.8.3 and there is no change in the behavior. I have left it on my sidebar, with the debug option enabled, but I don’t know how to interpret what is being put out.
@watson, comment out this line in the css on the options page:
That should remove the >> from your links.
YAY! So with your latest update, my sidebar looks like it’s supposed to. I know others are still having issues, but I seem to be doing okay so far. Thanks for the fix!
Rob,
I tried both 0.8.2 and 0.8.3 and have the same results, nothing shows up no matter if I include any categories in the include section or not. I have no problems with collapsing archives or pages.
Thanks,
Joe
Hi Rob. Me again.
All through the recent version releases, CC has been working fine for me and I’ve been wondering why other people have been having problems. But with 0.8.3 it’s stopped working: Once the category has been expanded, the little expand / collapse symbol disappears so that you can’t collapse the category any more. I’ve uninstalled and reinstalled a couple of times, and played with the settings just to make sure.
0.8.3 is on my test site here http://test.londonkoreanlinks.net/ while 0.8.2 is on my live site working just fine. http://londonkoreanlinks.net/
Happy New Year to you
Philip
@Joe,
I think I figured out the problem. You are not actually using categories on your blog. You are only using tags. Collapsing Categories WAS only looking for categories. I have now added an option to list categories, tags, or both. The default is still to only list categories. My hunch is that this should fix the problem for many others too.
Please download the development version. If it seems to be working for people, I will call it 0.8.4.
Rob
Rob I am using categories, the most recent post was posted in ‘Regulations & Legislative’ and the post before that in ‘All tied up’. If I enable the WP categories widget it populates and works fine. I enabled that on the left sidebar and left yours on the right.
Joe
@Joe,
Indeed you are using categories. Thanks for your patience. I think I have it all figured out now. If you wouldn’t mind, please re-download the development version, and see if it is working for you now.
@Philip – I don’t see the collapsing categories widget at all on your test site.
Rob
Hi Rob
I’ve moved it top left and renamed it to make it obvious!
It works just about OK in IE7 (though the mouse arrow doesn’t behave ideally on hover), but flock / firefox / chrome / safari / opera / seamonkey all have the problem where the little icon vanishes when you expand, which means you can’t collapse it again.
Philip
@Philip,
I think I was getting a cached page. After clicking on a page other than the front page, I saw collapsing categories.
It turns out that another plugin is causing the issue – there is a style sheet called gigpress.css that defines
I use the class ‘collapsCat hide’ to indicate that it should be collapsed. If you add the following to your css, the problem goes away:
Also, it looks like there is no style defined for collapsCat at all. Check the settings page to set the style.
Rob
Thanks for the swift and accurate analysis Rob
I deactivated the conflicting plugin, pressed “restore original style” in the settings page and everything’s working fine now. Thanks a lot.
I’ll bear your css tweak in mind if I ever go live with gigpress.
Best wishes
Philip
Rob,
With the dev version it seems they show up nested under each other.
Joe
@Joe,
I think I found that bug. Please try the development version one more time.
Thanks for your help in debugging. (Also, could you turn the debugging option on in your blog?)
Rob
Rob,
Downloaded it and turned on debugging. The categories themselves look good now but the content under them looks a little mixed up…no the right posts under the right categories.
Thanks,
Joe
Rob,
I just tried the Development build off of WordPress. I had to use FTP to delete the existing Collapsing Categories directory, WordPress couldn’t upload and open the zip.
When I tried it on my site, it still just nested the categories. It would include the right ones, and give the correct number of posts, but it just nested the categories. I found that by using the Expanding Shows: Just Sub-categories, it would put up an unordered list of the included categories, but they all would just go to the category archive, even when the option for expanding when clicking on the category name was used.
Currently, it almost works for the one category (reviews) that has sub-categories. But there are 2 sub-categories under it (music and books) and only one shows, plus it has any categories that come under it in the nested.
Debug is on, so if you want to take a look, good luck.
Rob,
When we last left my story, I replaced the three way join with two joins separated by an “=” along with a “SELECT DISTINCT”. However, I now have subcategories disappearing from my list.
Let me know if you want any more info, and what I can do to help. I have debug on, if you wish to take a look.
-mitch
@Tom,
It seems to be working ok for me on Firefox. Is this what you were expecting?
@Mitch,
What subcategories are missing? This is what I see.
@Joe,
Could you tell me what posts you are expecting to show up in your “tackle” category? I am still having trouble figuring out what is going on there.
Rob
Rob,
No that is not correct. Reviews is a parent category, but there are only 2 sub-categories under it, music and books. It is showing music, games, comic books, and humor as sub-categories, but books is not showing. Games, comic books, and humor are all parent categories. If I change the sort order so Reviews is at the top of the list, all of my other categories will show up under it as sub-categories on your list.
Here are the settings I have for that list. Notice that posts are supposed to be showing? But the debug says that is set to no.
I have added the regular WordPress Category drop down so you can see what my actual categories are. The shorter list on the collapsing one is because I have only included some of them for testing.
Rob,
It seems that Tom and I are seeing similar symptoms.
Here’s the full hierarchy as taken from the blog’s config pages:
audio 15 chumash 1 bamidbar 9 bereishis 9 devarim 3 shemos 3 vayiqra 4 machashavah 5 absolutism 7 creation 6 eschatology 5 geulah 1 faith-and-proof 8 forks 9 fundamentals 14 halachah 0 process 17 taamei-hamitzvos 16 clothing 3 holidays 25 pesach 13 reward-and-punishment 4 science-and-torah 3 theology 6 theodicy 7 mussar 4 deios 21 history 2 middos 13 ahavah 7 anavah 7 anger 5 aveilus 3 bitachon 9 simchah 7 yirah 3 teshuvah 9 tools 5 torah-as-growth 6 ufem 3 psyche 17 naran 6 qedushah 3 taharah 3 tefillah 6 amidah 5 daily 9 preparation 1 shabbos 6 shacharis 5 shema 9 yom-tov 15 uncategorized 10-mitch
@Tom,
Maybe my option labeling is misleading. You do indeed have it set to show only sub-categories, not posts. Look at the setting which says “Expanding shows:”. If you posts to show up, you should select “Sub-categories and posts”.
@Mitch,
Thanks for the hierarchy. I am still confused though. I can navigate to “pesach” just fine with your collapsing category widget, which is pretty deeply nested. Is there a specific subcategory that is missing?
Rob
Doing a diff, I found that what is missing from the page is “Mussar->Middos” and its subcategories. Mussar is a parent level category, so this is only one level down. It is in the debug output hidden on my home page.
(I guess it’s the problem Diogenes faced :-) — I can’t find the section on refining one’s virtues!)
-micha
Rob,
No, I just forgot, I had it set to not show posts on the first option, because if I change that setting, this is what it looks like. Note that there are still no posts showing, and debug says posts are not supposed to appear. And everything is nested under everything above it. The only option I changed was the Expanding Shows: option to show both Sub-categories and Posts.
I have it with those options on my site right now.
@Tom and Mitch,
Tom lent me his database, which was very nice for debugging help. I spent quite a bit of time playing around with the queries, and I think I have them working now. I did a test install of wordpress using Tom’s database, and it seems to be working. Please give the development version one more try.
Thanks.
Rob
Rob,
The latest build looks like it has fixed my issues as well. No more nesting other top level categories and the correct posts showing under their categories. I have to do a little more checking to verify but at first glance it looks great.
Thanks for all your efforts on this.
Joe
Rob,
Thanks. The development version is working for me.
Now, since I can’t just leave you alone, a feature request: If a category contains posts as well as sub-categories, could there be an option for creating a “General” or “Miscellaneous” entry for grouping them into one place?
-mitch
Hey,
After update to latest version of plugin I’ve got no category in widget. When I enable debug in source is a list of categories in debug part but none on list.
This part of code looks like:
<ul id='collapsCatList'>
<pre style='display:none' >MySQL server version: 5.0.41
CATEGORY QUERY:
SELECT sz_term_taxonomy.count as 'count',
sz_terms.term_id, sz_terms.name, sz_terms.slug,
sz_term_taxonomy.parent, sz_term_taxonomy.description
FROM sz_terms, sz_term_taxonomy, sz_term_relationships
WHERE sz_terms.term_id = sz_term_taxonomy.term_id
AND sz_terms.term_id = sz_term_relationships.object_id
AND sz_term_taxonomy.term_id = sz_term_relationships.object_id
AND sz_terms.name != 'Blogroll' AND
sz_term_taxonomy.taxonomy = 'category' ''
GROUP BY sz_terms.term_id ORDER BY sz_terms.name
ASC
CATEGORY QUERY RESULTS
Array
(
[0] => stdClass Object
(
[count] => 72
[term_id] => 10
<in this place is correct list of categories)
What should i check to resolve problem.
Rob,
No joy here. With these settings, I get this on page load and this when I expand everything. Posts still don’t show no matter how I set it. If if is working on the copy of my database, then there must be something else, probably another plugin, on my site screwing with it.
@Jezzoo – I’m working on fixing these issues. Please try the development version.
@Tom – look here:
http://robfelty/tomBlog/
(and do one more update). My guess is that it might have to do with your old version of mysql, since the postquery is not returning anything. I don’t have an old version of mysql to play around with. One tip. I tried removing DISTINCT from the postquery in collapscatlist.php, and it doesn’t seem to display duplicates. Maybe that would work with mysql 4.0
Rob
@Mitch, that is a good idea for a feature. It might take me awhile to work on it though.
Rob
Rob,
I did another download and install of the development version. No change at all. I removed the distinct from the postquery, it didn’t seem to change anything either. On that testblog, the listing looks good, but nothing happens when I click on anything. Is that supposed to be like that?
I am thinking I really need to set up a test blog and go through my plugins. I know of at least one intermittent problem that screws with my dashboard if I load any of 3 plugins.
Can I use this widget outside of the sidebar as well? It works so beautifully, I’d like to have it on a page to browse categories.
@Tom,
Whoops, I just realized I had the ‘home’ set wrong in the database. That test site should look better now. Here is my suggestion. Set up a brand new wp 2.7 install, and try it out that way. I still think it might have to do with the version of mysql.
@amenity,
Currently the plugin is designed to be used either as a widget or manually, but not both. Here is a workaround. Find out the id number of your collapsing category widget by looking at the html source. You should see something like:
Then, insert the following code where you would like to have it:
Since this page is getting so ridiculously long, I am closing comments. Please post your bugs, questions and feature requests in the collapsing categories forum.
Thanks.
Rob
Pingback: Firefly » Blog Archive » Firefly-Update
Pingback: Meny i sidebar med innhold rangert alfabetisk - Webforumet.no
Pingback: Blog/Learning Log tidy up… | Phil Long - A photographer's journey
Pingback: 'Collapsing Categories' plugin - width settingLet's Make This Easy!