Adding custom meta boxes to specified custom post type
The fourth parameter is $screen, which in your case is set to post, so all you have to do is specify the website post type instead: function website_add_meta_box() { add_meta_box( ‘website-website’, __(‘Website’, ‘website’), ‘website_html’, ‘website’, ‘normal’, ‘default’ ); } Documentation here: https://developer.wordpress.org/reference/functions/add_meta_box/ As an aside, your save_post hook applies to any post or custom post … Read more