Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Responde

// Register Custom Post Type
function nutro_responde() {

	$labels = array(
		'name'                => _x( 'Preguntas', 'Post Type General Name', 'nutro' ),
		'singular_name'       => _x( 'Pregunta', 'Post Type Singular Name', 'nutro' ),
		'menu_name'           => __( 'Nutro Responde', 'nutro' ),
		'name_admin_bar'      => __( 'Nutro Responde FB App', 'nutro' ),
		'parent_item_colon'   => __( 'Elemento padre', 'nutro' ),
		'all_items'           => __( 'Todos', 'nutro' ),
		'add_new_item'        => __( 'Añadir nuevo item', 'nutro' ),
		'add_new'             => __( 'Añadir', 'nutro' ),
		'new_item'            => __( 'Nuevo', 'nutro' ),
		'edit_item'           => __( 'Editar', 'nutro' ),
		'update_item'         => __( 'Actualizar', 'nutro' ),
		'view_item'           => __( 'Ver', 'nutro' ),
		'search_items'        => __( 'Buscar', 'nutro' ),
		'not_found'           => __( 'No encontrado', 'nutro' ),
		'not_found_in_trash'  => __( 'No encontrado en la papelera', 'nutro' ),
	);
	$rewrite = array(
		'slug'                => 'nutro_responde',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => __( 'nutro_responde', 'nutro' ),
		'description'         => __( 'Consultas desde la App de FB', 'nutro' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'custom-fields', ),
		'taxonomies'          => array( 'category', 'post_tag' ),
		'hierarchical'        => true,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-facebook',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'rewrite'             => $rewrite,
		'capability_type'     => 'page',
	);
	register_post_type( 'nutro_responde', $args );

}

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