• I set up my meta box with 4 fields. 3 of them where normal, one was clonable. Then I created a new post and entered data in to the fields, including 3 clonable. When I saved the data, the default “Custom Fields” displayed the names and values for each of the regular fields, but nothing for the clonable one. I tried this for a couple different types of fields , texts and posts, with the same results.

    So I have two questions: (1) is this expected? and (2) if it is expected how will I access the clonable data from my PHP code?

    Thanks,
    -Eric

    https://www.ads-software.com/plugins/meta-box/

Viewing 1 replies (of 1 total)
  • Thread Starter mirgcire

    (@mirgcire)

    I looked in the postmeta table to see what I could find … and I found the metadata associated with the clonable meta key:

    a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:5:"three";}

    I am guessing this is the result of serializing an ordered array of strings. And I guess it can be unserialized using the php unserialize() function.

    But I can not explain why this field is not displayed by the “Custom Fields” meta box. (And, yes, I did check to be sure the key did not have a leading underscore).

Viewing 1 replies (of 1 total)
  • The topic ‘How to access cloned fields’ is closed to new replies.