WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Database Help - Where is the nav menu stored? (7 posts)

  1. wyndom
    Member
    Posted 3 years ago #

    I'm locked out of my nav menu because of a bug that I'm trying to sort out. In the meantime I'd like to edit my nav menu through the database. I'm guessing this is stored in wp_options, but I'm not sure what the table name is.

  2. Phil
    Member
    Posted 3 years ago #

    Navigation menu's are pulled from page and category names.

  3. Check the post_types table. Nav menu items are a kind of custom post type.

  4. wyndom
    Member
    Posted 3 years ago #

    Wow, wouldn't have guessed that mordauk. Looks like the names for the menus are stored in the wp_terms table. Thanks again!

  5. ytsmith2
    Member
    Posted 2 years ago #

    Hey, along the same lines does anyone know where in the databases one of the menus listed in wp_terms is selected for use as the primary navigation menu? I.e. how does wordpress know which menu to use for primary navigation? Thanks a lot!

  6. I'm not sure on that one, sorry.

  7. mnolf
    Member
    Posted 2 years ago #

    ytsmith2: with my theme, the information on primary and secondary menu is stored in a wp_option field called theme_mods_[plugin-name]. you should be able to find it with a query like this:
    SELECT * FROM wp_options WHERE option_name LIKE "theme_mods_%"

Topic Closed

This topic has been closed to new replies.

About this Topic