Migration, general question
-
Hi,
I’m using another meta-boxes plugin that has been abandoned and am not coder enough to get it to work with newer versions of WP myself. Fortunately it made use of the standard postmeta fields for data storage. In my post editors I only have text fields, and radio boxes, but the keys do not have a common prefix and some boxes are repeatable. So my questions are:
– Can I replicate the metaboxes based on my old key/value pairs without using a prefix for the keys or is a prefix mandatory?
– The old plugin used a numerical id, also stored in postmeta in order to determine, which set of meta-boxes had to be used with a post. Is this distinction in CMB2 based on a certain meta value, too, or does it rely on another method?
– When I export the posts via WP, the values for repeatable forms are stored consecutively in the XML, like:
<wp:postmeta> <wp:meta_key>ext_url</wp:meta_key> <wp:meta_value><![CDATA[https://external.1]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key>ext_url</wp:meta_key> <wp:meta_value><![CDATA[https://external.2]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key>ext_link_text</wp:meta_key> <wp:meta_value><![CDATA[text.1]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key>ext_link_text</wp:meta_key> <wp:meta_value><![CDATA[text.2]]></wp:meta_value> </wp:postmeta>
Does this match the way CMB2 stores values, too?
Sorry to bug, but could you please enlighten me a bit?
- The topic ‘Migration, general question’ is closed to new replies.