get $post (object,parts/values) in meta-box
Do not rely on globals like get_the_ID() or get_post() do. Use the parameters for your callbacks. You get the current post object twice: When you register the metabox, you get the post object as a second parameter. When your output callback is called, you get it as the first parameter. Here is an example showing … Read more