Title: custom functions
Last modified: January 21, 2021

---

# custom functions

 *  Resolved [aruzza78](https://wordpress.org/support/users/aruzza78/)
 * (@aruzza78)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/custom-functions-4/)
 * Hello, i would need some help with a custom functions, i am importing many locations
   from switzerland a lot have the same name but in different Cantons, every cantons
   has his code in my csv, example city “Buchs” is in Canton Aarau and its code 
   is CH-AG, same city Buchs is in canton Luzern and the code is CH-LU, the same
   city is in Sant Gallen with the code CH-SG, my question is which functions do
   i need to use to put Canton code only for the city with the same name but in 
   different canton ?

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/custom-functions-4/#post-13966682)
 * Hi [@aruzza78](https://wordpress.org/support/users/aruzza78/),
 * > my question is which functions do i need to use to put Canton code only for
   > the city with the same name but in different canton ?
 * I’m sorry, but I’m not sure if I completely understand the question.
 * Are you trying to convert “CH-AG” to “Buchs, Aarau”, “CH-LU” to “Buchs, Luzern”,
   and “CH-SG” to “Buchs, Sant Gallen” in some import field? If not, can you elaborate
   a bit on the data that’s being imported, where you’re importing it, and exactly
   what you want the results to be?
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/custom-functions-4/#post-14021496)
 * Hey [@aruzza78](https://wordpress.org/support/users/aruzza78/),
 * I’m marking this as resolved since we didn’t hear back. You can follow up here
   if you still have questions about this issue.
 * Anyone else with questions, please open a new topic.

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

The topic ‘custom functions’ 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

 * [if statement](https://wordpress.org/support/topic-tag/if-statement/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/custom-functions-4/#post-14021496)
 * Status: resolved