Default value does not work if one field in a metabox has a value set.

Support General Default value does not work if one field in a metabox has a value set.Resolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38013
    Mr Jon MarksMr Jon Marks
    Participant

    Metabox default field value does not work if one field in a metabox has a value set.

    For example I have a field. I save the post. The field is now set in the DB.

    I add a new field to the same metabox at a later time. The default (std) value for the new field does not load. The new field is always set to empty/''/0.

    If I delete the original field value the new field (and the original) then show their defaults.

    #38020
    Long NguyenLong Nguyen
    Moderator

    Hi Mr Jon,

    Yes, that's not an issue with the std setting of a custom field. Please read more about the default value on this documentation https://docs.metabox.io/creating-fields-with-code/#why-does-not-my-default-value-work

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