WordPress default menu in database

Posted by Prem Tiwari | Updated on

Menu by itself is a taxonomy in WordPress. It means that you can find all menus in wp_terms table, by running following query:

Menu item is custom post type in WordPress. They are stored in wp_posts table. You can find all of them by using this query:

Relations between menus and menu items are stored in wp_term_relationships table. To find all items of specific menu you can use this query:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers