Works by moodstyler (Portofolio)
// Register Custom Post Type
function works_post_type() {
$labels = array(
'name' => _x( 'Works by moodstyler', 'Post Type General Name', 'ms_' ),
'singular_name' => _x( 'Work by moodstyler', 'Post Type Singular Name', 'ms_' ),
'menu_name' => __( 'Works by moodstyler', 'ms_' ),
'name_admin_bar' => __( 'Works@ms', 'ms_' ),
'archives' => __( 'Works Archives', 'ms_' ),
'attributes' => __( 'Works Attributes', 'ms_' ),
'parent_item_colon' => __( 'Parent Item:', 'ms_' ),
'all_items' => __( 'All Works', 'ms_' ),
'add_new_item' => __( 'Add New Work', 'ms_' ),
'add_new' => __( 'Add New Work', 'ms_' ),
'new_item' => __( 'New Item', 'ms_' ),
'edit_item' => __( 'Edit Item', 'ms_' ),
'update_item' => __( 'Update Item', 'ms_' ),
'view_item' => __( 'View Item', 'ms_' ),
'view_items' => __( 'View Items', 'ms_' ),
'search_items' => __( 'Search Item', 'ms_' ),
'not_found' => __( 'Not found', 'ms_' ),
'not_found_in_trash' => __( 'Not found in Trash', 'ms_' ),
'featured_image' => __( 'Featured Image', 'ms_' ),
'set_featured_image' => __( 'Set featured image', 'ms_' ),
'remove_featured_image' => __( 'Remove featured image', 'ms_' ),
'use_featured_image' => __( 'Use as featured image', 'ms_' ),
'insert_into_item' => __( 'Insert into item', 'ms_' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'ms_' ),
'items_list' => __( 'Items list', 'ms_' ),
'items_list_navigation' => __( 'Items list navigation', 'ms_' ),
'filter_items_list' => __( 'Filter items list', 'ms_' ),
);
$rewrite = array(
'slug' => 'works',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Work by moodstyler', 'ms_' ),
'description' => __( 'Works by moodstyler', 'ms_' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-portfolio',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => 'works',
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'works', $args );
}
add_action( 'init', 'works_post_type', 0 );