jpcontrerasv
7/30/2014 - 2:53 PM

WP > Register post type

WP > Register post type

register_post_type('banner_mini', array(
	'labels' => array(
		'name' => __('Banners') ,
		'singular_name' => __('Banner') ,
		'add_new' => _x('Agregar nuevo', 'banner_mini') ,
		'add_new_item' => __('Agregar nuevo banner') ,
	) ,
	'public' => true,
	'has_archive' => false,
	'show_ui' => true,
	'hierarchical' => false, 
	'capability_type' => 'post', 
	'query_var' => true,
	'supports' => array(
		'title',
		'thumbnail',
) 
));