Title: Import OptionTree values from database
Last modified: August 20, 2016

---

# Import OptionTree values from database

 *  Resolved [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/import-optiontree-values-from-database/)
 * 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/](http://wordpress.org/extend/plugins/option-tree/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/import-optiontree-values-from-database/#post-3148494)
 * What version of OT are you using?
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/import-optiontree-values-from-database/#post-3148495)
 * 2.0.9
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/import-optiontree-values-from-database/#post-3148496)
 * 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?
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/import-optiontree-values-from-database/#post-3148497)
 * Hmm I guess I only tried those values individually before refreshing in the admin–
   never both at once. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Import OptionTree values from database’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/option-tree_363534.svg)
 * [OptionTree](https://wordpress.org/plugins/option-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/option-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/option-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/option-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/option-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/option-tree/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 4 replies
 * 2 participants
 * Last reply from: [Zade](https://wordpress.org/support/users/nothin7/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/import-optiontree-values-from-database/#post-3148497)
 * Status: resolved