Do not replace with empty element value
-
Hi there,
I can’t figure out how do not raplace existing post tags with a empty value.
For eaxample: I imported posts with the following json file:
[ { "name":"Kialeas", "tags":"red, blue, green" }, { "name":"Orbital", "tags":"one, two, three" }, { "name":"Manique", "tags":"cat, dog, pig" } ]Now i want to update with the following:
[ { "name":"Kialeas", "tags":"sky, moon, earth", "cat":"One" }, { "name":"Orbital", "tags":"audi, bmw, merc", "cat":"Two" }, { "name":"Manique", "tags":"", "cat":"Three" } ]If
"tags":""is empty it will remove exiting post tags.How to avoid it?
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Do not replace with empty element value’ is closed to new replies.