cpt ofertas de trabajo
custom post type de ofertas de trabajo
if ( ! function_exists('cpt_ofertas_trabajo') ) { // Register Custom Post Type function cpt_ofertas_trabajo() { $labels = array( 'name' => _x( 'trabajos', 'Post Type General Name', 'cpt_ofertas_trabajo' ), 'singular_name' => _x( 'trabajo', 'Post Type Singular Name', 'cpt_ofertas_trabajo' ), 'menu_name' => __( 'ofertas de trabajo', 'cpt_ofertas_trabajo' ), 'name_admin_bar' => __( 'ofertas de trabajo', 'cpt_ofertas_trabajo' ), 'archives' => __( 'Item Archives', 'cpt_ofertas_trabajo' ), 'attributes' => __( 'Item Attributes', 'cpt_ofertas_trabajo' ), 'parent_item_colon' => __( 'Parent Item:', 'cpt_ofertas_trabajo' ), 'all_items' => __( 'Todas las ofertas', 'cpt_ofertas_trabajo' ), 'add_new_item' => __( 'Añadir oferta de trabajo', 'cpt_ofertas_trabajo' ), 'add_new' => __( 'Añadir nueva oferta', 'cpt_ofertas_trabajo' ), 'new_item' => __( 'Nueva oferta', 'cpt_ofertas_trabajo' ), 'edit_item' => __( 'Editar oferta', 'cpt_ofertas_trabajo' ), 'update_item' => __( 'Actualizar oferta', 'cpt_ofertas_trabajo' ), 'view_item' => __( 'ver la oferta', 'cpt_ofertas_trabajo' ), 'view_items' => __( 'ver todas las ofertas', 'cpt_ofertas_trabajo' ), 'search_items' => __( 'Search Item', 'cpt_ofertas_trabajo' ), 'not_found' => __( 'Not found', 'cpt_ofertas_trabajo' ), 'not_found_in_trash' => __( 'Not found in Trash', 'cpt_ofertas_trabajo' ), 'featured_image' => __( 'Featured Image', 'cpt_ofertas_trabajo' ), 'set_featured_image' => __( 'Set featured image', 'cpt_ofertas_trabajo' ), 'remove_featured_image' => __( 'Remove featured image', 'cpt_ofertas_trabajo' ), 'use_featured_image' => __( 'Use as featured image', 'cpt_ofertas_trabajo' ), 'insert_into_item' => __( 'Insert into item', 'cpt_ofertas_trabajo' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'cpt_ofertas_trabajo' ), 'items_list' => __( 'lista de ofertas de trabajo', 'cpt_ofertas_trabajo' ), 'items_list_navigation' => __( 'Items list navigation', 'cpt_ofertas_trabajo' ), 'filter_items_list' => __( 'Filter items list', 'cpt_ofertas_trabajo' ), ); $rewrite = array( 'slug' => 'ofertas de trabajo', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'trabajo', 'cpt_ofertas_trabajo' ), 'description' => __( 'post type ofertas de trabajo', 'cpt_ofertas_trabajo' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'revisions', 'custom-fields', 'post-formats' ), 'taxonomies' => array( 'category' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-tools', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'ofertas_trabajo', $args ); } add_action( 'init', 'cpt_ofertas_trabajo', 0 ); }