Here’s a quick code snippet by Bill Erickson that lets you move and rename the featured image metabox for your custom post type:
[php]
<?php
add_action(‘do_meta_boxes’, ‘be_rotator_image_metabox’ );
/**
* Move Featured Image Metabox on ‘rotator’ post type
* @author Bill Erickson
* @link http://www.billerickson.net/code/move-featured-image-metabox
*/
function be_rotator_image_metabox() {
remove_meta_box( ‘postimagediv’, ‘rotator’, ‘side’ );
add_meta_box(‘postimagediv’, __(‘Custom Image’), ‘post_thumbnail_meta_box’, ‘rotator’, ‘normal’, ‘high’);
}
[/php]
If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.
2 Responses
Thanx for the tip. What if I want to change the size of the thumbnail inside of the postimagediv ?
When I tried to find out how to do that I didn’t get a solution for that, maybe things have changed in the meantime, let me know if you find out how to do it.