Title: Mapping attributes
Last modified: July 31, 2020

---

# Mapping attributes

 *  Resolved [brianylvestersix](https://wordpress.org/support/users/brianylvestersix/)
 * (@brianylvestersix)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/mapping-attributes-2/)
 * Hi,
 * First off all thnx for the great plug-inn and sorry for my bad English.
 * I have an xml feed with lots of true / false values.
 * Example of date in feed:
    <property name=”wifi”> <value> True </value> </property
   >
 * I want to use this information with attributes.
 * The only thing is i want to translate true to “ja” and false to “Nee”
 * The attributes i use to filter the website.
 * There is a mapping function for custom fields but i can not find something like
   that at the attribute section.
 * So… can i replace a true and false to Ja and Nee. Or if there would be a mapping
   function just like for the custom fields would be perfect.
 * Thanks in advanced.

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/mapping-attributes-2/#post-13233997)
 * Hi [@brianylvestersix](https://wordpress.org/support/users/brianylvestersix/),
 * > So… can i replace a true and false to Ja and Nee. Or if there would be a mapping
   > function just like for the custom fields would be perfect.
 * You can map attribute values using a PHP function: [https://www.wpallimport.com/documentation/developers/custom-code/inline-php/](https://www.wpallimport.com/documentation/developers/custom-code/inline-php/).
   Here’s an example:
 * `[str_replace(array("True","False"),array("Ja","Nee"),{property[./@name="wifi"]/
   value[1]})]`
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/mapping-attributes-2/#post-13289493)
 * Hi [@brianylvestersix](https://wordpress.org/support/users/brianylvestersix/),
 * I’m marking this as resolved since it’s been a while. Let us know if you still
   have questions about this.
 * Anyone else, please open a new topic.

Viewing 2 replies - 1 through 2 (of 2 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/)

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