Skip to content

Instantly share code, notes, and snippets.

@cesjam7
Created September 2, 2014 21:19
Show Gist options
  • Save cesjam7/38d8790c29ccb413efc0 to your computer and use it in GitHub Desktop.
Save cesjam7/38d8790c29ccb413efc0 to your computer and use it in GitHub Desktop.
<?php
register_post_type( 'noticias', array(
'label' => __( 'noticias', 'anqatv' ),
'description' => __( 'Entradas para las noticias de AnqaTV', 'anqatv' ),
'labels' => array(
'name' => _x( 'Anqa Noticias', 'Post Type General Name', 'anqatv' ),
'singular_name' => _x( 'Noticia', 'Post Type Singular Name', 'anqatv' ),
'menu_name' => __( 'Noticias', 'anqatv' ),
'parent_item_colon' => __( 'De la Noticia:', 'anqatv' ),
'all_items' => __( 'Todas las Noticias', 'anqatv' ),
'view_item' => __( 'Ver Noticia', 'anqatv' ),
'add_new_item' => __( 'Añadir Nueva Noticia', 'anqatv' ),
'add_new' => __( 'Nueva Noticia', 'anqatv' ),
'edit_item' => __( 'Editar Noticia', 'anqatv' ),
'update_item' => __( 'Actualizar Noticia', 'anqatv' ),
'search_items' => __( 'Buscar Noticia', 'anqatv' ),
'not_found' => __( 'Ninguna noticia encontrada', 'anqatv' ),
'not_found_in_trash' => __( 'No hay noticias en la papelera', 'anqatv' ),
),
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'post-formats', 'revisions'),
'taxonomies' => array( '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,
'menu_icon' => get_bloginfo('template_directory').'/images/favicon.png',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment