We are currently on vacation until 13th May 2024, ticket responses maybe be longer than normal during this period, sorry for any inconvenience.

Conditional import value from xml to match my custom JetEngine Custom Post – Taxonomies, Values, Glossaries etc.

Closed

Import WP Pro Updated 2 months ago 1 Reply

Bartosz asked 2 months ago on February 24, 2024 at 4:31 pm

Hello! Is there a way to make some custom snippet  script to use some kind of conditionals to import  data from XML that has different data values than my custom post in database. Is it possible to make something so it would match my values?

I tried to use https://www.importwp.com/docs/change-imported-field-values-programmatically, but couldnt make it to work. Still Im not sure if it is a snippet  im looking for.

Im trying to import xml with data like:  Type: Apartment  —–>  to  match  my  taxonomy: Apartament(polish word)  or  Type:Features  that has array values like: Pool, Air Conditioner:Outside to match for example  —–> Swimming Pool, Air Condtioner – In my custom post values  database.. 

Best regards!

EDIT: https://www.importwp.com/docs/change-imported-field-values-programmatically, Hmm I think I made it work with custom fields, but still cant make it to work with Taxonomies.

 

J

James replied Support Agent

2 months ago on February 24, 2024 at 5:21 pm

Hi Bartosz,

Based on what you have said, when importing taxonomy terms: https://www.importwp.com/docs/how-to-import-wordpress-taxonomies-onto-a-post-type/ , next to the taxonomy terms field there is a grey button that allows you to map data https://www.importwp.com/docs/template-fields/#mapping-fields does this sounds like it will solve your issue? 

For example setting the term value to your csv/xml selector, then opening up the field map and setting it to 

If Value: Equals
This: Apartment
Then return: Apartament(polish word)

allowing you to add as many as required.

If you need more help configuring the field map, can you please export and attach your importer settings to this ticket by going to Tools > Import WP > Settings / Tools > Import / Export and select and export your importer as a JSON file, and also attach a copy of the csv / xml file.

James