I want to add a choice for my CPT, I basically copy pasted the code in the “Select” documentation page into a meta-box.
When I save the post, I can see in my database that the meta value get saved properly, but when the post get reloaded (after save), it doesn’t re-select the choice item I have previously saved.
Are we supposed to set the “value” field parameter to the correct value by loading the current post (if any) ourselves and set it as value in the piklist definition?
Or is it a bug?
Same problem with checkbox and radio types.
Thanks.