scort-post
primera creacion para scort post
// Register Custom Post Type
function gugus_post_type() {
$labels = array(
'name' => _x( 'scort post', 'Post Type General Name', 'gugus' ),
'singular_name' => _x( 'scort post', 'Post Type Singular Name', 'gugus' ),
'menu_name' => __( 'scort-post', 'gugus' ),
'name_admin_bar' => __( 'Post Type', 'gugus' ),
'parent_item_colon' => __( 'Parent Item:', 'gugus' ),
'all_items' => __( 'todos los post', 'gugus' ),
'add_new_item' => __( 'crear nuevo scort-post', 'gugus' ),
'add_new' => __( 'Agregar nuevo', 'gugus' ),
'new_item' => __( 'Agregar ciudad', 'gugus' ),
'edit_item' => __( 'editar scort-post', 'gugus' ),
'update_item' => __( 'actualizar scort-post', 'gugus' ),
'view_item' => __( 'ver ciudad', 'gugus' ),
'search_items' => __( 'buscar scort-post', 'gugus' ),
'not_found' => __( 'No hay resultados ', 'gugus' ),
'not_found_in_trash' => __( 'No hay nada en la papelera', 'gugus' ),
);
$args = array(
'label' => __( 'scort post', 'gugus' ),
'description' => __( 'post de las scort', 'gugus' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-id',
'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( 'scort post', $args );
}
add_action( 'init', 'gugus_post_type', 0 );