joshrodgers
Member
Posted 8 months 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
joshrodgers
Member
Posted 8 months 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
joshrodgers
Member
Posted 8 months 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