How to Move and Rename the Featured Image Metabox

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

Partner Sponsors

BionicWP

Full disclosure: If you purchase through a link on our site, we may earn a commission. Learn more.

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.

This article was filed in our archives.
Written by Jean Galea
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.

In this article

Discover More

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.

Share Your Thoughts

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

New discoveries, every week.
Join thousands of designers, developers, and builders that come to WP Mayor to find the best guides, tools, and services for their next website. One email, once a week.
WP Mayor Newsletter

Claim Your Free Website Tip 👇

Leave your name, email and website URL below to receive one actionable improvement tip tailored just for your website within the next 24 hours.

"They identified areas for improvement that we had not previously considered." - Elliot

By providing your information, you'll also be subscribing to our weekly newsletter packed with exclusive content and insights. You can unsubscribe at any time with just one click.

What's missing?