Forums

[resolved] theme_mods_ are overwriting my nav_menu_locations (2 posts)

  1. Brayne
    Member
    Posted 1 year ago #

    When I save my theme_mods, I always overwrite my nav_menu_locations and then I have to re-save the menu. Anyone else experience this?

  2. Brayne
    Member
    Posted 1 year ago #

    I was saving theme options to theme_mods_mytheme and every time I would save, I would end up overwriting the Menu locations "nav_menu_locations".

    I just used a different option name for my theme options to avoid conflict.

    Instead of

    $settings = 'theme_mods_'.get_current_theme();

    I'm using

    $settings = 'theme_options_'.get_current_theme();

    Nice tutorial on options here....

    http://wpengineer.com/968/wordpress-working-with-options/
    (not my site.)

Topic Closed

This topic has been closed to new replies.

About this Topic