How to Move and Rename the Featured Image Metabox

Here's a quick code snippet by Bill Erickson that lets you move and rename the featured image metabox for your custom post type.
Table of Contents

If you purchase through a link on our site, we may earn a commission.

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 https://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.

Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

If you purchase through a link on our site, we may earn a commission.

All suggestions are anonymous.

More from our blog...

2 Responses

  1. Thanx for the tip. What if I want to change the size of the thumbnail inside of the postimagediv ?

    1. 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.

Post a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay updated with WP Mayor's newsletter showcase every week

Stay on top of every new WordPress innovation and latest launches. Receive all our fresh product reviews and expert guides directly in your inbox.

Hosting Survey 2024

Are you happy with your hosting provider or are you over-paying for too little? Have your say below!

"*" indicates required fields

What's the main reason you picked this host?*
How happy are you with your host?*

OPTIONAL: If you'd like to receive the results of this survey, please enter your details below.