Hello,
I have an import scheduled daily that import data from an xml file into ten fields (regular Wordpress and ACF fields). I have a problem with one of this field (it's the price of the book) when an item (so a book in my case, it's a custom post) already have data in the fields and i'm updating it.
With your help (thanks again) I have a bit of code that don't import the data if there is nothing in the tag related to price. Like that I don't remplace a price already in the field with nothing.
But now I got a new issue. The files I get everyday don't always have all the tags in it. Sometimes they don't have the price tag and when I'm importing it, the field "price" is reset to nothing if data is already in.
Perhaps I will have the same problem with other fields.
So my question is that : when there is nothing in a tag the data is not imported to be updated but is it possible to do the same thingwhen the tag is not present at all?
Thank you
Regards
Hello,
I just tested on my side and it works perfectly.
Thanks again for your great support.
Regards