Title: customize my categories
Last modified: December 29, 2019

---

# customize my categories

 *  Resolved [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/)
 * hello, I hope you have a nice day
 * I just want to ask about how I can remove the symbol before my categories when
   I import from my file like this
 * {category}|my baby|{/category} I need to remove this two || symbols
 * I make this on mapping option but not succeed ???
 * the second issue can I integrate category from XML file in a specific category
   that I have in my store ??

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12278037)
 * Hi [@rafiktech](https://wordpress.org/support/users/rafiktech/)
 * > {category}|my baby|{/category} I need to remove this two || symbols
 * You can use a PHP function to do that: [http://www.wpallimport.com/documentation/developers/execute-php/](http://www.wpallimport.com/documentation/developers/execute-php/).
   Example:
 * `[str_replace("|","",{category[1]})]`
 * > the second issue can I integrate category from XML file in a specific category
   > that I have in my store ??
 * Yes – WP All Import converts the category name that you import to its slug value
   and searches for existing categories to use before it creates it as a new one.
   If you’re trying to match an existing child category then make sure to import
   the full hierarchy: [see documentation](http://www.wpallimport.com/documentation/taxonomies/nested/).
 *  Thread Starter [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12280901)
 * thank you for your reply
 * I tried to write this function a lot of times without successful
 * like this in the function editor
 * [str_replace(“|”,””,{KategoriAdi[1]})] and show me error then in this
 * [str_replace(‘|’,’ ‘,'{KategoriAdi[1]}’)]
 * not work
 * see this image
 * [https://ibb.co/C9CB97V](https://ibb.co/C9CB97V)
 * for the second issue I mean if I have my own category how I can insert the products
   in that category the example B in the documentation I don’t know what I should
   write in
    that filed!!!
 * from where I will give the wpallimport my category???
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12280991)
 * Hi [@rafiktech](https://wordpress.org/support/users/rafiktech/)
 * > I tried to write this function a lot of times without successful
 * This is a core PHP function, so you don’t have to put anything in the Function
   Editor, you just need to call it from the category field. It should be:
 * `[str_replace("|","",{KategoriAdi[1]})]`
 * > for the second issue I mean if I have my own category how I can insert the 
   > products in that category
 * I think we’ll need to see your data file and a manually created example of the
   existing category to properly advise on this. Please manually create the category
   you’re trying to import into on a demo site at [http://www.wpallimport.com/debug/](http://www.wpallimport.com/debug/),
   then open a ticket at [http://www.wpallimport.com/support/](http://www.wpallimport.com/support/)
   with the details (link to demo site, copy of import file, etc).
 *  Thread Starter [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12281034)
 * thank you for your reply
 * the problem when I add the function as you write the editor shows me this error
   message
 * [https://ibb.co/w43Z7yP](https://ibb.co/w43Z7yP)
 * and this one of my product to look for it
 * [https://ibb.co/qspXhg6](https://ibb.co/qspXhg6)
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12305769)
 * Hi [@rafiktech](https://wordpress.org/support/users/rafiktech/)
 * > the problem when I add the function as you write the editor shows me this error
   > message
 * The function needs to be in the import template inside the “Taxonomies, Categories,
   Tags” section, not in the Function Editor. See: [https://d.pr/i/mPY5kN](https://d.pr/i/mPY5kN).
 *  Thread Starter [rafiktech](https://wordpress.org/support/users/rafiktech/)
 * (@rafiktech)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12307643)
 * thank you for replying to me
 * if I have two filed like Parkwood and brand name how I can import them from file
   XML to my products
 * also if I want to add some word in the description just add them before the {(
   description)} from a file
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12374506)
 * Hi [@rafiktech](https://wordpress.org/support/users/rafiktech/)
 * > if I have two filed like Parkwood and brand name how I can import them from
   > file XML to my products
 * Where would you save these values if you were manually creating the product?
 * > also if I want to add some word in the description just add them before the{(
   > description)} from a file
 * Yes, you could do that. Are you running into issues when trying this?
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12411090)
 * I’m marking this as resolved because we haven’t heard back. [@rafiktech](https://wordpress.org/support/users/rafiktech/)
   if you still have questions about this issue please post them here. Anyone else,
   please start a new thread.

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

The topic ‘customize my categories’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/customize-my-categories/#post-12411090)
 * Status: resolved