[Plugin: WordPress Importer] Missing Serialized Meta Value
-
Hi,
The importer worked just fine, but it missed a custom theme’s (custom post type) meta key value that is stored as an PHP array (serialized by WordPress).
Here’s the XML file:
<wp:postmeta> <wp:meta_key>_custom_info</wp:meta_key> <wp:meta_value><![CDATA[a:20:{s:6:"data";...more data...;}]]></wp:meta_value> </wp:postmeta>After I imported the file, in the database the ‘_custom_info’ meta_value was empty.
All other custom fields that containted only numbers are fine.
Now when I looked at the XML file again I see that a meta key ‘_menu_item_classes’ is also serialized, but it’s fine in the database.
Here is my array that is being stored as a custom field:
array 's1' => string '1' (length=1) 's2' => string '123' (length=3) 's3' => array 'asd1' => string 'sss' (length=3) 'asd2' => string 'sss' (length=3) 'asd3' => string 'sss' (length=3) 'asd4' => string 'sss' (length=3) 'asd5' => string 'sss' (length=3) 'asd6' => string 'sss' (length=3) 's4' => string 'sss' (length=3)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘[Plugin: WordPress Importer] Missing Serialized Meta Value’ is closed to new replies.