Gerenciador de Banner
Deve ser colocado no functions.php
// Register Custom Post Type function custom_post_banner_app() { $labels = array( 'name' => _x( 'Banners APP', 'Post Type General Name', 'custom_post_banner_app' ), 'singular_name' => _x( 'Banner APP', 'Post Type Singular Name', 'custom_post_banner_app' ), 'menu_name' => __( 'Banner APP', 'custom_post_banner_app' ), 'parent_item_colon' => __( 'Parent Banner', 'custom_post_banner_app' ), 'all_items' => __( 'Todos os Banners', 'custom_post_banner_app' ), 'view_item' => __( 'Ver Banner', 'custom_post_banner_app' ), 'add_new_item' => __( 'Add novo Banner', 'custom_post_banner_app' ), 'add_new' => __( 'Add Novo', 'custom_post_banner_app' ), 'edit_item' => __( 'Editar Banner', 'custom_post_banner_app' ), 'update_item' => __( 'Atualizar Banner', 'custom_post_banner_app' ), 'search_items' => __( 'Buscar Banner', 'custom_post_banner_app' ), 'not_found' => __( 'Not found', 'custom_post_banner_app' ), 'not_found_in_trash' => __( 'Not found in Trash', 'custom_post_banner_app' ), ); $args = array( 'label' => __( 'post_banner_app', 'custom_post_banner_app' ), 'description' => __( 'Gerenciador de Banners para o APP minha Dose', 'custom_post_banner_app' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'custom-fields', ), 'taxonomies' => array( 'banners', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'post_banner_app', $args ); } // Hook into the 'init' action add_action( 'init', 'custom_post_banner_app', 0 );