Migrating custom post – CDATA difference
-
Dears,
I am trying to migrate from on template to the other (JobEngine -> Jobify). I manage to migrate quite a lot but I stucked at resumes part. When I try to migrate using import/export tool I can see that on of the field which cover “Education” in JE loooks like:
<wp:postmeta> <wp:meta_key>_candidate_education</wp:meta_key> <wp:meta_value><![CDATA[a:2:{i:0;a:5:{s:4:"name";s:31:"Warsaw University of Technology";s:4:"from";a:2:{s:5:"month";s:0:"";s:4:"year";s:4:"2012";}s:2:"to";a:2:{s:5:"month";s:0:"";s:4:"year";s:4:"2013";}s:6:"degree";s:0:"";s:7:"current";i:0;}i:1;a:5:{s:4:"name";s:31:"Warsaw University of Technology";s:4:"from";a:2:{s:5:"month";s:0:"";s:4:"year";s:4:"2008";}s:2:"to";a:2:{s:5:"month";s:0:"";s:4:"year";s:4:"2012";}s:6:"degree";s:0:"";s:7:"current";i:0;}}]]></wp:meta_value> </wp:postmeta>>
While in new template it looks like this:
<wp:postmeta> <wp:meta_key>_candidate_education</wp:meta_key> <wp:meta_value><![CDATA[a:2:{i:0;a:4:{s:8:"location";s:31:"Warsaw University of Technology";s:13:"qualification";s:40:"Computer Science, Master of Science (MS)";s:4:"date";s:9:"2012-2013";s:5:"notes";s:0:"";}i:1;a:4:{s:8:"location";s:31:"Warsaw University of Technology";s:13:"qualification";s:26:"Computer Science, Bachelor";s:4:"date";s:9:"2008-2012";s:5:"notes";s:0:"";}}]]></wp:meta_value> </wp:postmeta>
Unfortunately without change this section is not getting imported into new template. How can I transform it in order to fulfill new template format ?
Extra question : I know that CDATA is used for section which souldn’t be parsed, but I could figure out which language is used “inside” :
a:2:{i:0;a:4:
Could someone tell me what is this ? Knowing that I could try to google it …
- The topic ‘Migrating custom post – CDATA difference’ is closed to new replies.