Title: Custom Field Array Export
Last modified: August 19, 2016

---

# Custom Field Array Export

 *  [cwz001](https://wordpress.org/support/users/cwz001/)
 * (@cwz001)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/custom-field-array-export/)
 * Hi,
 * I’m having difficulties with the wordpress export facility. It’s not importing/
   exporting my post_meta information correctly it places it in a custom field as
   pgopts then the array of information as a value.
 * This is how I retrieve the array date to my custom field
 * <?php wp_nonce_field( plugin_basename( __FILE__ ), $pgopts . ‘_wpnonce’, false,
   true );
 *  foreach($meta_post_gallery as $meta_box) {
    $data = get_post_meta($post->ID,
   $pgopts, true);
 *  require CWZ_FILES . ‘/adm/inc/meta_config.php’; // HTML formatting for data
 *  } ?>
 * This is how I update my post_meta.
    update_post_meta( $post_id, $pgopts, $data);
 * All this works absolutely fine apart from when I want to export the data and 
   re-import it.
 * Any suggestions?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [cwz001](https://wordpress.org/support/users/cwz001/)
 * (@cwz001)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-field-array-export/#post-1614604)
 * Anyone?

Viewing 1 replies (of 1 total)

The topic ‘Custom Field Array Export’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [cwz001](https://wordpress.org/support/users/cwz001/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/custom-field-array-export/#post-1614604)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
