Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I setup some hierarchical categories and when I assign them to a post the widget reflows and loses the hierarchy display. Example:

- Education Services
-- Arts & Archives
--- Fine Arts
-- Reference
-- Health Sciences

When selecting "Education Services" & "Reference" (marked with 'x') the widget appears like this:

x Education Services
-x Reference
- Arts & Archives
-- Fine Arts
- Health Sciences

So since the selected (top-level) parent goes to the top, all children besides the selected one look they have lost their parent (even though they actually have not).

I have read some other forums post/support tickets but not much about this issue. Any suggestions?

share|improve this question
    
I'm confused about what's happening. Can you post some of the code or a link to the site? What widget are you referring to? –  Michelle Aug 16 '11 at 19:33
    
if you are still curious see the Trac reports t31os linked below. –  Alex Ciarlillo Aug 18 '11 at 12:51
    
Ah, gotcha! When you said 'widget' I assumed you were talking about how the categories display on the front end. I'm with you - that's a very annoying 'feature'. I've had clients complain in the past and never knew how to describe what was happening much less fix it. Great question! –  Michelle Aug 18 '11 at 15:23
add comment

2 Answers

up vote 2 down vote accepted

You could try out Scribu's plugin, i believe this addresses the very problem you're describing which has been reported on Trac a handful of times(but closed/deleted).

Category Checklist Tree by scribu
http://wordpress.org/extend/plugins/category-checklist-tree/

Related tickets:

Hope that helps.. :)

share|improve this answer
    
thanks. i saw various forums posts that were closed/un-answered also. i will give this plugin a shot or just end up re-working my idea i suppose. –  Alex Ciarlillo Aug 18 '11 at 12:51
    
If necessary you can always unregister the metabox and create your own that sorts them differently(if you're into doing that). :) –  t31os Aug 18 '11 at 21:10
add comment

I developed a plugin that solves this problem. Besides preserving the hierarchy of categories, this plugin adds a toggle style the category tree.

See the official plugin page: http://www.rafaelmarques.com/wordpress/plugins/wp-best-tree/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.