• ragnarok214

    (@ragnarok214)


    Hi,

    I’m not sure if this is a bug or an error on my part, but I have a custom post type post that has a metabox with a checkbox in it and it is checked (lets say I just published it). Well after publishing if I stay on that page and wait, the page will autosave as a draft, but the checkbox will be saved as if it were unchecked even though it is still checked.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Custom meta boxes or the standard ones like author, discussion, etc?

    Thread Starter ragnarok214

    (@ragnarok214)

    custom meta box

    esmi

    (@esmi)

    That sounds like you have a problem in your theme’s code.

    Thread Starter ragnarok214

    (@ragnarok214)

    take a look then

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Thread Starter ragnarok214

    (@ragnarok214)

    also, i just learned that it doesn’t just do it with my meta data, but it will also do it for already coded checkboxes like the “Allow comments” checkbox.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possible bug? Checkbox in metabox gets saved as unchecked when a draft is made.’ is closed to new replies.