Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Designers

Custom post type Designers

if ( ! function_exists('designers') ) {

// Register Custom Post Type
function designers() {

	$labels = array(
		'name'                  => _x( 'Designers', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Designer', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Designers', 'text_domain' ),
		'name_admin_bar'        => __( 'Designers', 'text_domain' ),
		'parent_item_colon'     => __( 'Designer pai:', 'text_domain' ),
		'all_items'             => __( 'Todos os designers', 'text_domain' ),
		'add_new_item'          => __( 'Adicionar novo designer', 'text_domain' ),
		'add_new'               => __( 'Adicionar novo', 'text_domain' ),
		'new_item'              => __( 'Novo', 'text_domain' ),
		'edit_item'             => __( 'Editar', 'text_domain' ),
		'update_item'           => __( 'Update', 'text_domain' ),
		'view_item'             => __( 'Visualizar', 'text_domain' ),
		'search_items'          => __( 'Buscar', 'text_domain' ),
		'not_found'             => __( 'Não Encontrado', 'text_domain' ),
		'not_found_in_trash'    => __( 'Não Encontrado no Lixo', 'text_domain' ),
		'items_list'            => __( 'Lista designers', 'text_domain' ),
		'items_list_navigation' => __( 'Lista designers navegação', 'text_domain' ),
		'filter_items_list'     => __( 'Lista designers filtro', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Designer', 'text_domain' ),
		'description'           => __( 'Os designers da Futon Company', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
		'taxonomies'            => array( 'designers' ),
		'hierarchical'          => true,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'show_in_admin_bar'     => false,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,		
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
	);
	register_post_type( 'designers', $args );

}
add_action( 'init', 'designers', 0 );

}