Title: Question with Importing a CSV
Last modified: August 22, 2016

---

# Question with Importing a CSV

 *  Resolved [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/)
 * Hello!
 * I created a custom post type via code and used [this custom meta/field box code](https://github.com/webdevstudios/Custom-Metaboxes-and-Fields-for-WordPress)
   to programmatically create custom meta boxes to be associated with the custom
   post type. Now, when I went to your plugin’s page in the backend, I selected 
   my custom post type in the “Select Post Type” dropdown list and uploaded the 
   CSV file. However, in the WP FIELDS column, it didn’t list the custom meta boxes/
   fields I created. Why is this the case? How can I or you make it possible for
   the WP FIELDS column to also list the custom meta boxes/fields in the dropdown
   list?
 * [https://wordpress.org/plugins/wp-ultimate-csv-importer/](https://wordpress.org/plugins/wp-ultimate-csv-importer/)

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

 *  [vasanthavanan](https://wordpress.org/support/users/vasanthavanan/)
 * (@vasanthavanan)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320616)
 * Hi ,
 * Your created custom meta box/fields should have the wordpress default custom 
   fields characteristics. Then only it will shown under the **WP FIELDS** column
   in our importer.
 * Thanks.
 *  Thread Starter [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320646)
 * I see. My custom meta boxes/fields do show up in the backend and there is no 
   reason why they shouldn’t show up in the WP FIELDS column.
 * Here’s a sample code of a few custom meta boxes I made.
 *     ```
       $meta_boxes['sacvb_metabox'] = array(
       		'id'         => 'sacvb_metabox',
       		'title'      => __( 'SACVB Metabox', 'cmb' ),
       		'pages'      => array( 'addresses' ), // Post type
       		'context'    => 'normal',
       		'priority'   => 'high',
       		'show_names' => true, // Show field names on the left
       		// 'cmb_styles' => true, // Enqueue the CMB stylesheet on the frontend
       		'fields'     => array(
       			array(
       				'name'       => __( 'First Name', 'cmb' ),
       				'desc'       => __( 'first name', 'cmb' ),
       				'id'         => $prefix . 'first_name',
       				'type'       => 'text',
       				'show_on_cb' => 'cmb_test_text_show_on_cb', // function should return a bool value
       			),
       			array(
       				'name'       => __( 'Last Name', 'cmb' ),
       				'desc'       => __( 'last name', 'cmb' ),
       				'id'         => $prefix . 'last_name',
       				'type'       => 'text',
       				'show_on_cb' => 'cmb_test_text_show_on_cb', // function should return a bool value
       			),
       ```
   
 *  [vasanthavanan](https://wordpress.org/support/users/vasanthavanan/)
 * (@vasanthavanan)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320652)
 * In first import you have to map as **Add Custom Field** for all of your registered
   custom fields.In future import it will automatically fetch from database and 
   it will shown as **CF:** with your field name. Then you can mapping the fields
   while import the records.
 * Thanks.
 *  Thread Starter [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320656)
 * I see. If I use the **Add Custom Field** option to map data from the imported
   CSV to my registered custom fields, how can I ensure that they are mapped correctly
   to my custom meta boxes/fields?
 *  [vasanthavanan](https://wordpress.org/support/users/vasanthavanan/)
 * (@vasanthavanan)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320692)
 * We suggest that previous method to make the entry in database for your registered
   custom fields. Ohterwise you can make a one entry as **manually** for all of 
   your registered custom fields. In future import it will automatically fetch from
   database and it will shown as **CF:** with your field name.
 * Thanks
 *  Thread Starter [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320710)
 * All right. I have one more question. If I select the “Add Custom Field” then 
   with the text box that appears to put the name of the custom field, is this also
   the id of the custom field?
 *  [vasanthavanan](https://wordpress.org/support/users/vasanthavanan/)
 * (@vasanthavanan)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320711)
 * Yes. You don’t need to provide that info in textbox. It will automatically fetch
   the field id while selecting the “**Add Custom Field**” in mapping section.
 *  Thread Starter [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320712)
 * I see. If you refer to the screenshot below, you will see the error I got when
   I wanted to map **all** the fields in the CSV to custom fields.
 * [http://grab.by/ADL2](http://grab.by/ADL2)
 * Also, I am wondering if it is possible to map one field from the CSV to two places(
   i.e. post title **AND** the first_name custom field).
 *  Thread Starter [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320727)
 * It was as I thought. I could use the id of my custom meta boxes in the CSV importer
   and voila, it works! Awesome plugin!
 * By the way, I hope you can answer my inquiry of if it is possible to map one 
   field from the CSV to two places (i.e. post title **and** the first_name custom
   field) without needing to make extra columns in the CSV file?
 *  [vasanthavanan](https://wordpress.org/support/users/vasanthavanan/)
 * (@vasanthavanan)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320733)
 * Hi,
 * The post_title, post_content and post_status those fields are mandatory fields
   in our importer. You should map those **CSV HEADER** to corrosponding **WP FIEDLS**
   in mapping section before proceeding the import process. Excerpt the the mandatory
   you can map other fields as a custom fields. I hope it resolve your doubt. Don’t
   forget to leave your valuable feedback and reviews to our importer. It will be
   very helpful to us.
 * Thanks.

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

The topic ‘Question with Importing a CSV’ is closed to new replies.

 * ![](https://ps.w.org/wp-ultimate-csv-importer/assets/icon.svg?rev=3131703)
 * [WP Ultimate CSV Importer – Import CSV, XML & Excel into WordPress](https://wordpress.org/plugins/wp-ultimate-csv-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ultimate-csv-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ultimate-csv-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ultimate-csv-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ultimate-csv-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ultimate-csv-importer/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [vasanthavanan](https://wordpress.org/support/users/vasanthavanan/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/question-with-importing-a-csv/#post-5320733)
 * Status: resolved