CTP_contacto
Código de CTP_contacto
if ( ! function_exists('Maxva_contacto') ) { // Register Custom Post Type function Maxva_contacto() { $labels = array( 'name' => _x( 'contactos', 'Post Type General Name', 'Maxva_contacto' ), 'singular_name' => _x( 'contacto', 'Post Type Singular Name', 'Maxva_contacto' ), 'menu_name' => __( 'Contacto', 'Maxva_contacto' ), 'name_admin_bar' => __( 'Contacto', 'Maxva_contacto' ), 'archives' => __( 'Archivos de contacto', 'Maxva_contacto' ), 'attributes' => __( 'Item Attributes', 'Maxva_contacto' ), 'parent_item_colon' => __( 'Parent Item:', 'Maxva_contacto' ), 'all_items' => __( 'All Items', 'Maxva_contacto' ), 'add_new_item' => __( 'Add New Item', 'Maxva_contacto' ), 'add_new' => __( 'Add New', 'Maxva_contacto' ), 'new_item' => __( 'New Item', 'Maxva_contacto' ), 'edit_item' => __( 'Edit Item', 'Maxva_contacto' ), 'update_item' => __( 'Update Item', 'Maxva_contacto' ), 'view_item' => __( 'View Item', 'Maxva_contacto' ), 'view_items' => __( 'View Items', 'Maxva_contacto' ), 'search_items' => __( 'Search Item', 'Maxva_contacto' ), 'not_found' => __( 'Not found', 'Maxva_contacto' ), 'not_found_in_trash' => __( 'Not found in Trash', 'Maxva_contacto' ), 'featured_image' => __( 'Featured Image', 'Maxva_contacto' ), 'set_featured_image' => __( 'Set featured image', 'Maxva_contacto' ), 'remove_featured_image' => __( 'Remove featured image', 'Maxva_contacto' ), 'use_featured_image' => __( 'Use as featured image', 'Maxva_contacto' ), 'insert_into_item' => __( 'Insert into item', 'Maxva_contacto' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'Maxva_contacto' ), 'items_list' => __( 'Items list', 'Maxva_contacto' ), 'items_list_navigation' => __( 'Items list navigation', 'Maxva_contacto' ), 'filter_items_list' => __( 'Filter items list', 'Maxva_contacto' ), ); $args = array( 'label' => __( 'contacto', 'Maxva_contacto' ), 'description' => __( 'contacto', 'Maxva_contacto' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-comments', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'contacto', $args ); } add_action( 'init', 'Maxva_contacto', 0 ); }