Pre-sales question: duplicate fields in separate meta boxes

Support MB Include Exclude Pre-sales question: duplicate fields in separate meta boxes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35347
    sherwin_flightsherwin_flight
    Participant

    I have two different metaboxes that I want to show based on a taxonomy. The taxonomy term will either be "open" or "closed". The metabox for "closed" has less options than "open", but the options it does have are also found in the "open" metabox as well.

    If I set these up using the Include Exclude extension, it sounds like I could show my metaboxes based on that taxonomy. Can I use the same field names in both, since only one metabox will ever be shown at a time?

    And would the options saved in the database remain even if a metabox is hidden?

    For example, say my "open" metabox has a section for notes. My closed metabox doesn't. If I changed the taxonomy back to "open" would that data still be there?

    #35356
    Long NguyenLong Nguyen
    Moderator

    Hi,

    If you use the extension MB Include Exclude, a meta box is not loaded so you can use the same field ID in both meta boxes. But please be aware that the field value will be overridden with the last save because they have the same ID (meta key).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.