Title: Auto-Create terms for attribute field doesn&#8217;t split
Last modified: November 24, 2017

---

# Auto-Create terms for attribute field doesn’t split

 *  Resolved [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/auto-create-terms-for-attribute-field-doesnt-split/)
 * I assigned a field from CSV to an attribute field and enabled “Is Taxonomy” and“
   Auto-Create Terms”. The values in CSV field are comma separated (Term 1, Term
   2, Term 3, …).
    However, the importer doesn’t split these terms by comma, for
   each product the whole string is used as new term. I could use the taxonomy feature
   instead, but then this wouldn’t be a WooCommerce product attribute anymore, but
   become an unrelated generic taxonomy.
 * Thanks in advance!

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/auto-create-terms-for-attribute-field-doesnt-split/#post-9720927)
 * Hi [@strarsis](https://wordpress.org/support/users/strarsis/)
 * The attribute value field requires that the terms are separated by the pipe symbol“
   |”. To fix this without editing your import file, you can use the str_replace
   function like so:
 * `[str_replace( ",", "|", {colors[1]} )]`
 * Just replace {colors[1]} with the element from your file that contains the term
   values. You can read more about PHP functions in imports here: [http://www.wpallimport.com/documentation/developers/execute-php/](http://www.wpallimport.com/documentation/developers/execute-php/).
 *  Thread Starter [strarsis](https://wordpress.org/support/users/strarsis/)
 * (@strarsis)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/auto-create-terms-for-attribute-field-doesnt-split/#post-9721036)
 * Awesome feature, thanks!
 *  [intershop](https://wordpress.org/support/users/intershop/)
 * (@intershop)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/auto-create-terms-for-attribute-field-doesnt-split/#post-10100594)
 * i have same problem
 * my csv is
 * attributes
    Τύπος θήκης:: για λαμπτήρες;; Είδος στελέχους:: BA15S;; Έξοδοι:: 
   Καλώδια;; Κατασκευαστής:: ELTA
 * so i have to import 4 attributes from above the :: operator saparates name from
   value and the ;; separates the attributes. SO HOW DO I MPORT ?

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

The topic ‘Auto-Create terms for attribute field doesn’t split’ is closed to new
replies.

 * ![](https://ps.w.org/woocommerce-xml-csv-product-import/assets/icon-256x256.png?
   rev=2570167)
 * [WP All Import – Product Import for WooCommerce](https://wordpress.org/plugins/woocommerce-xml-csv-product-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-xml-csv-product-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-xml-csv-product-import/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-xml-csv-product-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-xml-csv-product-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-xml-csv-product-import/reviews/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)
 * [comma](https://wordpress.org/support/topic-tag/comma/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [product attribute](https://wordpress.org/support/topic-tag/product-attribute/)
 * [separate](https://wordpress.org/support/topic-tag/separate/)
 * [split](https://wordpress.org/support/topic-tag/split/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)
 * [terms](https://wordpress.org/support/topic-tag/terms/)
 * [value](https://wordpress.org/support/topic-tag/value/)

 * 3 replies
 * 3 participants
 * Last reply from: [intershop](https://wordpress.org/support/users/intershop/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/auto-create-terms-for-attribute-field-doesnt-split/#post-10100594)
 * Status: resolved