Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

post type negocios

// Register Custom Post Type
function custom_post_type() {

	$labels = array(
		'name'                => _x( 'Negocios', 'Post Type General Name', 'theme' ),
		'singular_name'       => _x( 'Negocio', 'Post Type Singular Name', 'theme' ),
		'menu_name'           => __( 'Negocios', 'theme' ),
		'parent_item_colon'   => __( 'Padre', 'theme' ),
		'all_items'           => __( 'Todos los negocios', 'theme' ),
		'view_item'           => __( 'Ver', 'theme' ),
		'add_new_item'        => __( 'Añadir', 'theme' ),
		'add_new'             => __( 'Añadir', 'theme' ),
		'edit_item'           => __( 'Editar', 'theme' ),
		'update_item'         => __( 'Actualizar', 'theme' ),
		'search_items'        => __( 'Buscar', 'theme' ),
		'not_found'           => __( 'No encontrado', 'theme' ),
		'not_found_in_trash'  => __( 'Nada', 'theme' ),
	);
	$args = array(
		'label'               => __( 'negocio', 'theme' ),
		'description'         => __( 'Negocios', 'theme' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', ),
		'taxonomies'          => array( 'tipo' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'negocio', $args );

}

// Hook into the 'init' action
add_action( 'init', 'custom_post_type', 0 );