#20351 closed defect (bug) (duplicate)
Caregories in nav_menu menu are unordered
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | 3.3.1 |
| Severity: | normal | Keywords: | needs-patch needs-testing |
| Cc: |
Description
Hello,
When i go on wp admin menu for nav menus there is one bug becouse i have lot (over 110) of categories and they are all unordered, they are not arranged like on Category menu (category->subcategory->subcategory.etc.) they are all like parent categories.
Please can you do something about that. Thank you.
Best Regards,
Dubravko
Attachments (7)
Change History (21)
SergeyBiryukov — 14 months ago
comment:1
follow-up:
↓ 2
SergeyBiryukov — 14 months ago
Can't reproduce on my install (20351.menu-hierarchy.png).
Hierarchy for pages and categories in nav menus was added in #17029.
Replying to SergeyBiryukov:
Can't reproduce on my install (20351.menu-hierarchy.png).
Hierarchy for pages and categories in nav menus was added in #17029.
So i need to coppy codes from 17029.3.diff and paste them to my wp-includes/nav-menu.php file? if i understad that good?
comment:3
follow-up:
↓ 4
SergeyBiryukov — 14 months ago
No, that patch is already in core since WordPress 3.2.
Have you tried with Twenty Eleven and all plugins disabled (or on a clean install)?
- Cc frandeazevedo@… added
I can confirm categories are organized on my test install (WP 3.3.1, Twenty-Eleven 1.3). Could this be a L11N issue?
How many categories do you have? i have 304. Can you tell me what is L11N? :/
Yeah, sorry. L11N = Localization. In order to test this, you could create a test install in EN and see if the problem persists. It might sound unrelated, but I've seen issues like these before.
Also, when you reinstalled, did you redownload WP or did you use a local copy? Try redownloading it in case the local copy got corrupted somehow.
I tried reinstall directly on server, and it was all the same, i have also tried on localhost new installation of WP 3.3.1 and 3.2, but when I import all categories from this theme my categories are unorganised. It happens when one of my sub categories go on second page on all categories tab.
Unless you can actually tell us how to replicate that error or pin-point it a little further, there is not much we can do from here (Trac). However, you can post a link to a WP Forums thread and we could try to help you there, although I am stepping out now and won't be available for the rest of the day.
In the meantime, you can try what I suggested about installing WordPress in English either locally or remotely and see it the issue persists.
Another thing you can do is:
1. Install WP from scratch (redownload);
2. DO NOT import your old cats. First create a few, and see if the issue remains;
3. If it doesn't, start creating plenty of bogus cats and regularly check to see if anything breaks. If you reach a similar amount of categories as your site and then the layout breaks, you will have proven it is a core issue.
Other than that, I can't really think of anything else.
comment:10
dmaras — 14 months ago
I have tested it now on clean instalation on localhost newest version.
comment:11
Marventus — 14 months ago
Hi,
I just now had time to log in Trac. As for your pics, cat_test.png and cat_test2.png look as they should. The only one displaying a problem is cat_test1.png.
How many categories do you have in your test install? Did you install WP in English? I'm emphasizing the latter because you didn't specify this on your last reply.
The bottomline is, as I already mentioned, that unless you can actually reproduce this error from scratch, there's not much I can do for you from here.
I can now reproduce with more than 50 categories, which is $per_page value in wp_nav_menu_item_taxonomy_meta_box().
The hierarchy is not preserved on the second page of the meta box.
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
comment:14
Marventus — 14 months ago
- Cc frandeazevedo@… removed

This is how it look in menu