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 want to use a custom menu from the wordpress database but I get the elements disordered and I want them to have the same order how can i do that? There is a place in the database where the order is stored?

share|improve this question
    
I haven't confirmed this, but I would assume that since nav menus use the {prefix}_posts table, they would also use the menu_order column. –  karpstrucking Jul 30 at 11:58
    
possible duplicate of How is custom menu hierarchy output handled? –  Max Yudin Jul 30 at 12:10

1 Answer 1

up vote 0 down vote accepted

You will get the nav_menu_items from wp_term_relationship in correct order. if you want to confirm there order by knowing there order number... u will get the object id of each item from the previous table and search for that id in wp_posts. then there will be column for that particular row named menu_order. so that u can get the actual order number.

share|improve this answer

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.