Title: Separating Attribute Values
Last modified: May 26, 2019

---

# Separating Attribute Values

 *  Resolved [mehul2700](https://wordpress.org/support/users/mehul2700/)
 * (@mehul2700)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/separating-attribute-values/)
 * Hello,
 * Im trying to import attributes that are in the same line in my CSV file separated
   by a comma.
 * I tried using this code in functions.php which was on the official page but is
   giving me an error.
    [str_replace(“,”, “|”, {attributelist[1]})]
 * Basically I need to have these as separate dropdowns: and not in the same line.
   
   Size{2} : S/M[19], L/XL[22], XXL/XXXL[388]
 * Any help would be appreciated.

Viewing 1 replies (of 1 total)

 *  Thread Starter [mehul2700](https://wordpress.org/support/users/mehul2700/)
 * (@mehul2700)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/separating-attribute-values/#post-11574522)
 * Ignore the above. It has now been solved via XML.

Viewing 1 replies (of 1 total)

The topic ‘Separating Attribute Values’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [mehul2700](https://wordpress.org/support/users/mehul2700/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/separating-attribute-values/#post-11574522)
 * Status: resolved