Title: Mapping attributes?
Last modified: September 2, 2020

---

# Mapping attributes?

 *  Resolved [u3r](https://wordpress.org/support/users/u3r/)
 * (@u3r)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapping-attributes-3/)
 * Hi. How can I map attribute a different name?
 * For example, I have
    <tireType>Winter<tireType>
 * I want to change “Winter” to “Winter Tire”, but at the same <tireType> line, 
   it can be “Summer”, or “All-Season” and so on.
 * How would I go about changing
    Winter > Winter Tire Summer > Summer Tire All 
   Season > All Season Tire
 * I have this code here, but I’m not sure how to point it correctly to <tireType
   > value.
 * [str_replace(array(“Winter”,”Summer”,”All Season”),array(“Winter Tire”,”Summer
   Tire”,”All Season Tire”),{tireType/value[1]})]
 * Any help is appreciated. Thanks.

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapping-attributes-3/#post-13351954)
 * Hi [@u3r](https://wordpress.org/support/users/u3r/),
 * > I have this code here, but I’m not sure how to point it correctly to <tireType
   > > value.
 * The code looks correct, so can you show me an example of 1 record from your import
   file? You can use dummy data if you don’t want it to be public, we really just
   need to see the XML format to advise on how to point to the tire type value.
 *  Thread Starter [u3r](https://wordpress.org/support/users/u3r/)
 * (@u3r)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapping-attributes-3/#post-13356882)
 * Sure, this is how my XML looks: [http://prntscr.com/uayuq3](http://prntscr.com/uayuq3)
 * And the line I’d need to map is let’s say <kodas_ls3>, (although in the end, 
   I’ll be mapping most of them.)
 * Thank you!
 *  Thread Starter [u3r](https://wordpress.org/support/users/u3r/)
 * (@u3r)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapping-attributes-3/#post-13373105)
 * Solved.

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

The topic ‘Mapping 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [u3r](https://wordpress.org/support/users/u3r/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/mapping-attributes-3/#post-13373105)
 * Status: resolved