services_bestel
services_bestel
// Register Custom Post Type function bestel_services() { $labels = array( 'name' => _x( 'Services', 'Post Type General Name', 'bestel' ), 'singular_name' => _x( 'Service', 'Post Type Singular Name', 'bestel' ), 'menu_name' => __( 'Services', 'bestel' ), 'parent_item_colon' => __( 'Parent Item:', 'bestel' ), 'all_items' => __( 'All Services', 'bestel' ), 'view_item' => __( 'View Services', 'bestel' ), 'add_new_item' => __( 'Add New Service', 'bestel' ), 'add_new' => __( 'Add New Service', 'bestel' ), 'edit_item' => __( 'Edit Service', 'bestel' ), 'update_item' => __( 'Update Service', 'bestel' ), 'search_items' => __( 'Search Services', 'bestel' ), 'not_found' => __( 'Not found', 'bestel' ), 'not_found_in_trash' => __( 'Not found in Trash', 'bestel' ), ); $args = array( 'label' => __( 'bes_services', 'bestel' ), 'description' => __( 'All Services can be published here', 'bestel' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'services_archive' ), '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' => 'dashicons-portfolio', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'bes_services', $args ); } // Hook into the 'init' action add_action( 'init', 'bestel_services', 0 );