Adding Meta Boxes while Registering a Post Type in a Class
and welcome! It would be helpful to have code that is more complete and shows how you are calling these methods. However, one thing I see that is likely responsible for at least part of your problem is the way in which you are calling add_meta_box(). add_meta_box() should be called during the add_meta_boxes action. I’ve … Read more