Support » Plugin: WP CSV » Importing Serialized data for custom fields.

  • Resolved dharward


    I am trying to import some custom post data. One of the fields is a checkbox that seems to need to be serialized data. I have tried to import data that was not serialized but it was not working so I went and pulled all of the serialized strings and setup the import file but those are not pulling in.

    Any ideas on how to fix this issue?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author CPK Web Solutions


    Hi Dharward

    Been a while, but last time I checked, the plugin did export and import serialized data within custom fields. NOTE: serialized data will be converted to JSON format in the export CSV file.

    As always, the quick start guide process is recommended. Iow, create at least one post with the serialized data manually, then export to see how it should look. If you re-import in the same format, it should work.

    Best wishes


    I tried that. I went through and created a sample of posts manually with the needed checkboxes in place and exported them. I then put that information into the main import file but its still not importing the fields the serialized field is blank after the import is done.

    Is there a way to just import the normal information and let it be serialized as its imported? I know the text variables that the field stores in the database.

    I created a few posts manually and exported them and one of the samples I created showes that value as:


    I then took those 20 different variables I had and created posts for them and exported them, then took those values similar to the one above and put them in the proper place.

    When it imports the values are blank and if I take it and export it again the values are:

    Which appears to be the value of anything thats left blank in that column

    I have even tried to take an exported file and re-import it (after completely deleting all of those posts), but that does not seem to bring anything in at all. I thought if anything would work that would.

    I am able to bring in some posts with the import file I built based off of the export file, but the serialized info is not working.

    Plugin Author CPK Web Solutions


    For everyone else’s information…

    Dharward hired me to troubleshoot this and it was discovered that WP-CSV was working, but that the Types plugin was blanking the custom field (an on save hook fires and Types doesn’t perform adequate checks).

    Anyone experiencing this issue can verify by de-activating Types and then attempting import again. Fixing in WP-CSV would be a little convoluted. Best to contact the authors of Types to request a fix.

    Best wishes


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Importing Serialized data for custom fields.’ is closed to new replies.