Messed up Top Menu Order
-
Every time I rearrange products, the order of the top menu items gets mixed.
How can I stop that from happening?The page I need help with: [log in to see the link]
-
We see this issue too. Using the plugin seems to reset the order of menu items. Pretty significant problem.
Hello @delanthear, can you show me the site where it is happening? May be share screenshots of Menu and also share screenshots of how you are creating/managing this menu? That will help me fix this issue. I see many people are facing this issue.
I have a video of this happening. Just waiting for permission to share it.
Great.
Please see https://vimeo.com/675452586/393d01e879.
At the start of the menu, the myaccount link is at the top, and the logout link is at the bottom of the hover over menu.
She then updates a Woocommerce product and checks the menus. All is fine.
She then uses the plugin to rearrange the order and the menu order is messed up
This is the menu:https://imgur.com/a/8PeNcSQ. It’s a fairly standard menu record.
Other plugins of note:
Advanced Custom Fields PRO
Advanced Post Types Order
Category Order and Taxonomy Terms Order
Restrict Content Pro
Search & Filter Pro
Shortcode in Menusplus a bunch others which probably don’t interfere. It’s quite a complicated site.
@evectro Do you have any similar plugins?
Thanks for the video and screenshot. I tried to create similar menu on my plain wordpress woocommerce setup and followed the same steps. But this is not happening for me. Can you tell me which shortcode are you adding in the “Logout” menu entry?
Also can you test by disabling the “Shortcode in menus” plugin?It’s a simple custom shortcode:
// [logoutShortcode] add_shortcode( 'logoutShortcode', 'logout_shortcode' ); function logout_shortcode( $atts ) { $url = "<a href='" . wp_logout_url( get_permalink() ) . "'>Logout</a>"; return $url; }Deactivating the “Shortcode in menus” plugin doesn’t help. Still rearranges without it there. I’ve also tried by disabling the plugin and removing the logout menu entry, but we still see the myaccount link move (which is a custom link entry)
@delanthear , if I provide you updated plugin zip file, can you test it and let me know? Because I have tested it from my side by creating a similar kind of menu but it didn’t happen for me.
@delanthear also does it undo the issue if you disable the plugin?
Once it’s messed up, it stays messed up when you disable the plugin. What is interesting is that as part of my testing, I removed the logout entry and recreated it.
This one now doesn’t move, but the myaccount one still does, so I suspect it’s reordering based on ID or something?
If this is the case, you’ll need to create your menu items out of order (to get different ids) and then sort them in the menu?
Happy to test a fix
Great, thanks. This has given me a hint where the issue is but still need to debug more. How can I provide you the test files once I fix it? if you are OK with that, you can contact me from my website and we can continue from there.
@delanthear I have added some fixes and uploaded a developer version to github repo below.
https://github.com/aslamdoctor/rearrange-woocommerce-products
Can you download and use this plugin and see if the menu order is changing or not?Thank you
@aslamdoctor Thank you for uploading a developer version. Sadly it does not resolve the issue of the changing menu order.
Hi @evectro ,
Thanks for trying it out. Can you follow below steps if not done?
1. create new menu instead of the previous one which was messed up and assign it to that locations.
2. test if its showing properly on frontend
3. install developer version of my plugin and then change 1-2 products sorting
4. test again if the menu is showing properly on frontend.Thanks again.
Hi @aslamdoctor,
Thanks for the suggestion. Sadly that does not resolve the issue either though.
The topic ‘Messed up Top Menu Order’ is closed to new replies.