Deleting all post meta on import
-
Hello,
I am trying to import some post meta for a custom “State” field using the importer. The posts already exist as well as the ‘list-state’ meta_key, however it is empty in the database.
My CSV looks like this:
“post_type”,”post_id”,”list-state”
“hut”,2913,”Radovljica”
“hut”,2914,”Tolmin”
“hut”,2915,”Mozirje”When I import the above CSV I see:
Processing “” Done.
Processing “” Done.
Processing “” Done.Which doesn’t seem right to begin with. However after the import the new meta_value has not been added to ‘list-state’. In fact an investigation of the database shows that ALL existing meta data for each post in the CSV has been deleted from the post_meta table and nothing new has been added. There is no longer any meta data in the post_meta table with the ID’s 2913, 2914 and 2915 etc. It has all been erased.
Of course I need to import data for a lot more than 3 items and I don’t want to erase all of my existing post meta.
What am I doing wrong?
Thanks,
Nicolehttps://www.ads-software.com/plugins/really-simple-csv-importer/
- The topic ‘Deleting all post meta on import’ is closed to new replies.