Title: Import multiple attributes
Last modified: November 30, 2021

---

# Import multiple attributes

 *  Resolved [k4mr4n](https://wordpress.org/support/users/k4mr4n/)
 * (@k4mr4n)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/import-multiple-attributes/)
 * I have xml with products and each product has multiple attributes, each product
   have different number of attributes, I want to use foreach loop to add al this
   attributes. Is there a way to use foreach loop to add this attributes for each
   product instead of manually
    Below is the one product attribute xml
 *     ```
       <Attributes>
       <Attribute name="Ürün Detayı">
       <![CDATA[ Kürk/Peluş/Şerpa ]]>
       </Attribute>
       <Attribute name="Desen">
       <![CDATA[ Düz ]]>
       </Attribute>
       <Attribute name="Materyal">
       <![CDATA[ Pamuklu ]]>
       </Attribute>
       <Attribute name="Stil">
       <![CDATA[ Trend ]]>
       </Attribute>
       <Attribute name="Yaka">
       <![CDATA[ Kalp Yaka ]]>
       </Attribute>
       <Attribute name="Renk">
       <![CDATA[ Pembe ]]>
       </Attribute>
       <Attribute name="Kumaş / İplik">
       <![CDATA[ Pamuk Polyester ]]>
       </Attribute>
       <Attribute name="Kumaş Tipi">
       <![CDATA[ Örme ]]>
       </Attribute>
       <Attribute name="Kol Boyu">
       <![CDATA[ Askılı ]]>
       </Attribute>
       <Attribute name="Kalıp">
       <![CDATA[ Crop ]]>
       </Attribute>
       <Attribute name="Ürün Tipi">
       <![CDATA[ Düz ]]>
       </Attribute>
       <Attribute name="Kol Tipi">
       <![CDATA[ Askılı ]]>
       </Attribute>
       <Attribute name="Kap">
       <![CDATA[ Sabit Kap ]]>
       </Attribute>
       <Attribute name="Kesim">
       <![CDATA[ Crop ]]>
       </Attribute>
       </Attributes>
       ```
   
 * Different product can have different number of attributes and its values

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/import-multiple-attributes/#post-15132589)
 * Hi [@k4mr4n](https://wordpress.org/support/users/k4mr4n/),
 * > Is there a way to use foreach loop to add this attributes for each product 
   > instead of manually
 * Currently, using our built-in options, you’d have to manually map each possible
   attribute & value. Empty ones will be ignored on a per-record basis.
 * That said, if you’re comfortable with PHP, you can programmatically add them 
   to the products with a foreach loop using custom code and our API: [http://www.wpallimport.com/documentation/developers/action-reference/](http://www.wpallimport.com/documentation/developers/action-reference/).
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/import-multiple-attributes/#post-15246194)
 * Hi [@k4mr4n](https://wordpress.org/support/users/k4mr4n/),
 * This thread has been inactive for a while, so I’m going to go ahead and mark 
   it as resolved. Please open a new topic if you still have questions.

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

The topic ‘Import multiple attributes’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [wpallimport](https://wordpress.org/support/topic-tag/wpallimport/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/import-multiple-attributes/#post-15246194)
 * Status: resolved