Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Vagas

if ( ! function_exists('vagas_post_type') ) {

// Register Custom Post Type
function vagas_post_type() {

	$labels = array(
		'name'                  => _x( 'Vagas de Emprego', 'Post Type General Name', 'nw2' ),
		'singular_name'         => _x( 'Vaga de Emprego', 'Post Type Singular Name', 'nw2' ),
		'menu_name'             => __( 'Vagas de Emprego', 'nw2' ),
		'name_admin_bar'        => __( 'Vagas de Emprego', 'nw2' ),
		'archives'              => __( 'Aquivo de vagas', 'nw2' ),
		'parent_item_colon'     => __( 'Vaga relacionada', 'nw2' ),
		'all_items'             => __( 'Todas as vagas', 'nw2' ),
		'add_new_item'          => __( 'Adicionar vaga', 'nw2' ),
		'add_new'               => __( 'Adicionar vaga', 'nw2' ),
		'new_item'              => __( 'Nova vaga', 'nw2' ),
		'edit_item'             => __( 'Editar vaga', 'nw2' ),
		'update_item'           => __( 'Atualizar vaga', 'nw2' ),
		'view_item'             => __( 'Ver vaga', 'nw2' ),
		'search_items'          => __( 'Procurar vagas', 'nw2' ),
		'not_found'             => __( 'Nenhuma vaga encontrada', 'nw2' ),
		'not_found_in_trash'    => __( 'Nada na lixeira', 'nw2' ),
		'featured_image'        => __( 'Imagem que representa a Vaga', 'nw2' ),
		'set_featured_image'    => __( 'Definir uma imagem para vaga', 'nw2' ),
		'remove_featured_image' => __( 'Remover imagem da vaga', 'nw2' ),
		'use_featured_image'    => __( 'Usar como imagem que representa a vaga', 'nw2' ),
		'insert_into_item'      => __( 'Inserir na vaga', 'nw2' ),
		'uploaded_to_this_item' => __( 'Enviar para esta vaga', 'nw2' ),
		'items_list'            => __( 'Lista de vagas', 'nw2' ),
		'items_list_navigation' => __( 'Navegação de vagas', 'nw2' ),
		'filter_items_list'     => __( 'Filtrar vagas', 'nw2' ),
	);
	$args = array(
		'label'                 => __( 'Vaga de Emprego', 'nw2' ),
		'description'           => __( 'Adicione vagas de emprego', 'nw2' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'author', 'thumbnail', ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-businessman',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => false,		
		'exclude_from_search'   => true,
		'publicly_queryable'    => false,
		'rewrite'               => false,
		'capability_type'       => 'post',
	);
	register_post_type( 'vagas', $args );

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

}