Title: Export / Import
Last modified: August 22, 2016

---

# Export / Import

 *  Resolved [ramblurr](https://wordpress.org/support/users/ramblurr/)
 * (@ramblurr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/export-import-7/)
 * Does CMB2 have any sort of export or import feature? I can’t seem to find anything
   related to that.
 * Also, is there an API for writing data, not just fetching? If there was I could
   handle import/exports myself.
 * [https://wordpress.org/plugins/cmb2/](https://wordpress.org/plugins/cmb2/)

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [11 years, 3 months ago](https://wordpress.org/support/topic/export-import-7/#post-5838592)
 * I don’t believe so in regards to the data saved to the metaboxes. I know the 
   code used to generate the metaboxes are all in your php files which are readily
   portable.
 * All of the values are stored in the post/user meta tables, and possibly the options
   table depending on where you’re creating metaboxes for, for what it’s worth. 
   They’re frequently stored as serialized data, so be wary if you’re having to 
   change things inside the saved values, like urls for a site transfer.
 *  Thread Starter [ramblurr](https://wordpress.org/support/users/ramblurr/)
 * (@ramblurr)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/export-import-7/#post-5838643)
 * I’m asking because I’m creating an interface with CMB2 for users to manage a 
   bunch of data in their WP backend.
 * Part of launching the new interface is migrating the data from the existing source,
   CSV.
 * Can you point me to the API functions I can use to write data into the fields
   I’ve created with CMB2?
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [11 years, 3 months ago](https://wordpress.org/support/topic/export-import-7/#post-5838680)
 * Been looking through the codebase as well as GitHub, and I’m not seeing anything
   dedicated to exporting/importing the data between websites/databases.
 * As long as you’re not changing the keys used per field you create, exporting 
   a DB table to a csv, and then importing/parsing back in on the new server should
   retain all the necessary parts to pick up where you left off. It may get a little
   messy if your csv is using commas for the delimeter, and one of the field types
   has some string text that has a commas well, so there are caveats to keep in 
   mind for that aspect.
 * Trying to provide the best foot forward I can, with the limited available import/
   export ability there is.

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

The topic ‘Export / Import’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/export-import-7/#post-5838680)
 * Status: resolved