Title: [Plugin: OptionTree] Request: Save Options in Array
Last modified: August 19, 2016

---

# [Plugin: OptionTree] Request: Save Options in Array

 *  [unrelatedmedia](https://wordpress.org/support/users/unrelatedmedia/)
 * (@unrelatedmedia)
 * [15 years ago](https://wordpress.org/support/topic/request-save-options-in-array/)
 * I’d like request that the options added to and/or updated in the WordPress Database
   be added using a json encoding.
 * Currently it saves each field with it’s own row of data in the wp_option_tree
   table. Using just the sample set-up (importing the xml) you are left with 19 
   seperate rows in the table.
 * My suggestion is to store each section created (Header) as a row in the data 
   table, and all input elements in that heading stored in the (Header) row.
 * This would make it easier to implement in to wordpress’s default table: wp_options
   instead of needing to create a whole new table.
 * Maybe I’m just not understanding your logic. I’d welcome information!

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

 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years ago](https://wordpress.org/support/topic/request-save-options-in-array/#post-2069725)
 * I understand the question and have given it thought in the past. However, the
   table is only for the options themselves not the theme option data. The table
   is only used in the admin area for building the interface, it’s very little overhead.
   The actual options data, layouts, arrays are in the wp_option table and is what
   the front-end is querying. I will change the table in the future but I have to
   be sure it doesn’t break anything, so I’ve left it alone for now since it’s not
   critical to change it.
 *  [loyal2design](https://wordpress.org/support/users/loyal2design/)
 * (@loyal2design)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/request-save-options-in-array/#post-2069800)
 * Dear Derek,
 * First of all… thanks for your amazing plugin, it has helped so much so far!
 * Nog a small question:
 * I need to know how to backup the OptionTree settings also… where can i export
   one of those “theme-options.txt” ?
    (I know there is a possibility for .xml, 
   but i’ve seen themes with default option tree settings in a theme-options.txt
   but it’s some kind of encrypted code.
 * Where can i find / generate my theme-options.txt to include with themes?
 * Thanks in advance!
 * -Joe

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

The topic ‘[Plugin: OptionTree] Request: Save Options in Array’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [loyal2design](https://wordpress.org/support/users/loyal2design/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/request-save-options-in-array/#post-2069800)
 * Status: not resolved