Title: [Plugin: CSV Importer] Category description
Last modified: August 19, 2016

---

# [Plugin: CSV Importer] Category description

 *  Resolved [Ruriko](https://wordpress.org/support/users/ruriko/)
 * (@ruriko)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-csv-importer-category-description/)
 * Is there a way to import category description?
 * [http://wordpress.org/extend/plugins/csv-importer/](http://wordpress.org/extend/plugins/csv-importer/)

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

 *  Plugin Contributor [dvkob](https://wordpress.org/support/users/dvkob/)
 * (@dvkob)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-csv-importer-category-description/#post-1819191)
 * Ruriko: Not yet, but it will be trivial to add. I’ll try to update the plugin
   soon.
 *  [pekarna12](https://wordpress.org/support/users/pekarna12/)
 * (@pekarna12)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-csv-importer-category-description/#post-1819325)
 * Has this been added yet?
 *  Plugin Contributor [dvkob](https://wordpress.org/support/users/dvkob/)
 * (@dvkob)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-csv-importer-category-description/#post-1819326)
 * pekarna12: Not yet. Other things keep getting in the way 🙂
 *  [htz77](https://wordpress.org/support/users/tzeldin88/)
 * (@tzeldin88)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-csv-importer-category-description/#post-1819373)
 * I wanted to import Descriptions for each Term of a Custom Taxonomy. Here is what
   I did. Hope it helps someone.
 * Using CSV Importer plugin Version 0.3.5.
 * In my CSV file, add the Description content after the Category name, separated
   by an arbitrary delimited “::”, so it looks like this:
 *     ```
       csv_post_title,csv_post_type,csv_ctax_my-custom-taxonomy
       import-title,my-post-type,"MY PARENT CAT::My parent-cat description,MY CHILD SUBCAT 1::My sub-cat1 description"
       import-title,my-post-type,"MY PARENT CAT::My parent-cat description,MY CHILD SUBCAT 2::My sub-cat2 description"
       ```
   
 * (note: it’s probably not ideal/necessary to have the parent category description
   more than once, but I didn’t test without it.)
 * EDIT MY csv_importer.php FILE
    (Yes, this is hacking the plugin code, so my changes
   will be lost in any future updates of the plugin, and will require them to be
   implemented again.)
 * Find line 362
    `if ($parent) {` after that, add
 *     ```
       $tz_parent_array = explode("::",$parent);
       $parent_desc = $tz_parent_array[1];
       $parent = $tz_parent_array[0];
       ```
   
 * Change (what was) line 366 from
    `$parent_info = wp_insert_term($parent, $taxonomy);`
   to `$parent_info = wp_insert_term($parent, $taxonomy, array('description' => 
   $parent_desc));`
 * Find
    `if ($parent_ok) {` after that, add
 *     ```
       $tz_child_array = explode("::",$child);
       $child_desc = $tz_child_array[1];
       $child = $tz_child_array[0];
       ```
   
 * Change
    `array('parent' => $parent_id));` to
 *     ```
       array(
       	'parent' => $parent_id,
       	'description' => $child_desc
       ));
       ```
   

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

The topic ‘[Plugin: CSV Importer] Category description’ is closed to new replies.

 * ![](https://ps.w.org/csv-importer/assets/icon-256x256.png?rev=3039593)
 * [CSV Importer](https://wordpress.org/plugins/csv-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/csv-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/csv-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/csv-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/csv-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/csv-importer/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [htz77](https://wordpress.org/support/users/tzeldin88/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-csv-importer-category-description/#post-1819373)
 * Status: resolved