Return to Snippet

Revision: 52618
at October 27, 2011 21:38 by i-am-andy

Initial Code
//--------- Change the title and move the Featured Image box ------------

function customposttype_image_box() {

	remove_meta_box('postimagediv', 'home-page-banners', 'side');
	remove_meta_box('postimagediv', 'page', 'side');

	add_meta_box('postimagediv', __('Banner Image - The image that appears at the top of the page, size should be 760 x 155 pixels'), 'post_thumbnail_meta_box', 'page', 'normal', 'high');
	add_meta_box('postimagediv', __('Banner Image - 760 x 390 pixels - Bigger images will be cropped automatically.'), 'post_thumbnail_meta_box', 'home-page-banners', 'normal', 'high');

add_action('do_meta_boxes', 'customposttype_image_box');

Initial URL

Initial Description
Changes the title and moves the featured image box in Wordpress admin area. Add this to functions.php

Initial Title
Move and rename "Featured Image" box

Initial Tags
php, image, wordpress

Initial Language