Notícias
Cria tipo “ZNotícias
// Register Custom Post Type function zaib_noticias() { $labels = array( 'name' => _x( 'Notícias', 'Post Type General Name', 'zaibserver' ), 'singular_name' => _x( 'Notícia', 'Post Type Singular Name', 'zaibserver' ), 'menu_name' => __( 'Notícias', 'zaibserver' ), 'name_admin_bar' => __( 'Notícias', 'zaibserver' ), 'parent_item_colon' => __( 'Notícia pai:', 'zaibserver' ), 'all_items' => __( 'Gerenciar Notícias', 'zaibserver' ), 'add_new_item' => __( 'Cadastrar notícia', 'zaibserver' ), 'add_new' => __( 'Cadastrar', 'zaibserver' ), 'new_item' => __( 'Nova Notícia', 'zaibserver' ), 'edit_item' => __( 'Editar Notícia', 'zaibserver' ), 'update_item' => __( 'Atualizar Notícia', 'zaibserver' ), 'view_item' => __( 'Ver Notícia', 'zaibserver' ), 'search_items' => __( 'Pesquisar Notícia', 'zaibserver' ), 'not_found' => __( 'Não encontrada', 'zaibserver' ), 'not_found_in_trash' => __( 'Não encontrada no lixo', 'zaibserver' ), ); $args = array( 'label' => __( 'znoticias', 'zaibserver' ), 'description' => __( 'Páginas de Notícias', 'zaibserver' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-rss', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'query_var' => 'znoticia', 'capability_type' => 'page', ); register_post_type( 'znoticias', $args ); } // Hook into the 'init' action add_action( 'init', 'zaib_noticias', 0 );