Quantcast
Channel: Topic Tag: database | WordPress.org
Viewing all articles
Browse latest Browse all 11063

nicole2292 on "[Plugin: Really Simple CSV Importer] Deleting all post meta on import"

$
0
0

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,
Nicole

https://wordpress.org/plugins/really-simple-csv-importer/


Viewing all articles
Browse latest Browse all 11063

Trending Articles