WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Metabox Not Saving (3 posts)

  1. joshrodgers
    Member
    Posted 2 years ago #

    I am creating a custom post type with a price meta box. I can add a price, but after a few minutes the value I entered disappears or clears...it's like it's saving it temporarily but not permanently, how can I make it save permanently?

    I have the following code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thanks,
    Josh

  2. joshrodgers
    Member
    Posted 2 years ago #

    I am creating a custom post type with a price meta box. I can add a price, but after a few minutes the value I entered disappears or clears...it's like it's saving it temporarily but not permanently, how can I make it save permanently?

    I have the following code: http://pastebin.com/QytnUf55

    Thanks,
    Josh

  3. joshrodgers
    Member
    Posted 2 years ago #

    I found the solution...all I did was replace the save function with this one: http://pastebin.com/vjE9N0fJ.

    I found that from: http://wordpress.stackexchange.com/questions/14282/custom-post-type-metabox-not-saving (the 1st answer - with a green checkmark next to it)

    So, all together, the final code looks like: http://pastebin.com/EzAix8Sg

    Hope this helps someone :)

    Josh

Topic Closed

This topic has been closed to new replies.

About this Topic