Title: removing postimagediv
Last modified: August 20, 2016

---

# removing postimagediv

 *  [asherwolf](https://wordpress.org/support/users/asherwolf/)
 * (@asherwolf)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/removing-postimagediv/)
 * I want to remove most of the metaboxes off the editing page for a particular 
   role. One of them is the featured image metabox. In my code I have in a function:
 *     ```
       function author_remove_boxes ...
       remove_meta_box( 'postimagediv', 'post', 'normal' );
       ```
   
 * that function is called as such:
 * `add_action('admin_init', 'author_remove_boxes');`
 * Even in the wordpress code I found such:
 * `wp-admin/edit-form-advanced.php: add_meta_box('postimagediv', __('Featured Image'),'
   post_thumbnail_meta_box', $post_type, 'side', 'low');`
 * However, my featured image metabox is still appearing. All the other boxes I’ve
   tried have disappeared. Any thoughts anyone?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [abrauckmann](https://wordpress.org/support/users/abrauckmann/)
 * (@abrauckmann)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/removing-postimagediv/#post-2228150)
 * Yes – i have the same problem
 * Code in meta-boxes.php looks like:
 * /**
    * Display post thumbnail meta box. * * [@since](https://wordpress.org/support/users/since/)
   2.9.0 */ function post_thumbnail_meta_box() { global $post; $thumbnail_id = get_post_meta(
   $post->ID, ‘_thumbnail_id’, true ); echo _wp_post_thumbnail_html( $thumbnail_id);}
 * Code in edit_form_advanced.php looks like:
 * if ( current_theme_supports( ‘post-thumbnails’, $post_type ) && post_type_supports(
   $post_type, ‘thumbnail’ )
    && ( ! is_multisite() || ( ( $mu_media_buttons = get_site_option(‘
   mu_media_buttons’, array() ) ) && ! empty( $mu_media_buttons[‘image’] ) ) ) )
   add_meta_box(‘postimagediv’, __(‘Featured Image’), ‘post_thumbnail_meta_box’,
   $post_type, ‘side’, ‘low’);
 * … nothing effect to change Parameter
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/removing-postimagediv/#post-2228151)
 * Try:
    `add_action('admin_menu','author_remove_boxes');`
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/removing-postimagediv/#post-2228235)
 * I think this works:
 *     ```
       add_action('do_meta_boxes', 'author_remove_boxes');
       ```
   
 *  [isaactrond](https://wordpress.org/support/users/shaharsol/)
 * (@shaharsol)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/removing-postimagediv/#post-2228360)
 * I have the same problem. The only way I overcome it was by injecting some javascript
   code via any hook (added it to another meta box I added):
 * `jQuery("#postimagediv").hide();`

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘removing postimagediv’ is closed to new replies.

## Tags

 * [featured image](https://wordpress.org/support/topic-tag/featured-image/)
 * [metabox](https://wordpress.org/support/topic-tag/metabox/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [isaactrond](https://wordpress.org/support/users/shaharsol/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/removing-postimagediv/#post-2228360)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
