WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
[resolved] Import OptionTree values from database (5 posts)

  1. nothin7
    Member
    Posted 1 year ago #

    I recently moved my WordPress site from /wordpress to the root. Upon loading the site in its new location, all OptionTree values had been lost. The theme settings were all their, but they were all empty. I didn't make a backup from within OptionTree, sadly, but I did make a backup of the database. And I noticed that the option_tree table looked different in the backup. So I thought I could just replace the new option_tree value with the old. But it does not work. Is there a way I can import my settings stored directly in the database? Thanks!

    http://wordpress.org/extend/plugins/option-tree/

  2. Derek Herman
    Member
    Plugin Author

    Posted 1 year ago #

    What version of OT are you using?

  3. nothin7
    Member
    Posted 1 year ago #

    2.0.9

  4. Derek Herman
    Member
    Plugin Author

    Posted 1 year ago #

    If you've were using 2.0.9 in the backup you would do the following:

    In the old DB you can copy the contents of the option_value that's option_name equals option_tree that's saved in the wp_options table and paste it into the option of the same in the new DB. Also, you'll need to do the same for the option_tree_settings that is stored in the same table. Both need to be replaced for everything to go back to normal. I hope that make sense?

  5. nothin7
    Member
    Posted 1 year ago #

    Hmm I guess I only tried those values individually before refreshing in the admin--never both at once. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic