Custom Fields
Re-Envisioned
Support General Fields with array in id not being saved

  • Creator
    Topic
  • #12368
    RODRIGO A VIEIRA
    Participant

    I want to replace the Meta boxes of my JNews Theme and I can not create fields with array in the id because the data is not saved.

    Field id: jnews_single_post[via_name]

    When I Inspect the Metabox inputs of my theme, they are exactly like this (input name):

    <input type="text" name="jnews_single_post[via_name]" class="vp-input input-large" value="">

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #12388
    Anh Tran
    Keymaster

    Hi,

    To use array in ID, it’s better to use the Meta Box Group. This issue is not only about the HTML output, but also the data saved in the database. I guess you want an array of values, so Group is exactly that.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.