Title: Categories import are empty &#8211; resolved &#8211; update code
Last modified: August 31, 2016

---

# Categories import are empty – resolved – update code

 *  [calli59](https://wordpress.org/support/users/calli59/)
 * (@calli59)
 * [10 years ago](https://wordpress.org/support/topic/categories-import-are-empty-resolved-update-code/)
 * Hi ,
 * I just want to share the solution to my problem.
    When i import the rss… The 
   categories were created but the title stayed empty.
 * I modified the code like this and it worked fine.
 * You just need to find this line `foreach ($categories as $category) {`
 * under the line you should find and replace the line `$categories[$cat_index] 
   = $wpdb->escape( html_entity_decode( $category ) );`
 * by this one : `$categories[$cat_index] = str_replace(array('<![CDATA[', ']]>'),'',
   $wpdb->escape( trim($category) ));`
 * Hope this can help.
    Cécile
 * [https://wordpress.org/plugins/rss-importer/](https://wordpress.org/plugins/rss-importer/)

The topic ‘Categories import are empty – resolved – update code’ is closed to new
replies.

 * ![](https://ps.w.org/rss-importer/assets/icon.svg?rev=2828571)
 * [RSS Importer](https://wordpress.org/plugins/rss-importer/)
 * [Support Threads](https://wordpress.org/support/plugin/rss-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/rss-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rss-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rss-importer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [calli59](https://wordpress.org/support/users/calli59/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/categories-import-are-empty-resolved-update-code/)
 * Status: not resolved