Works
// Register Custom Post Type
function work() {
$labels = array(
'name' => _x( 'Works', 'Post Type General Name', 'html5reset' ),
'singular_name' => _x( 'Work', 'Post Type Singular Name', 'html5reset' ),
'menu_name' => __( 'Works', 'html5reset' ),
'name_admin_bar' => __( 'Works', 'html5reset' ),
'parent_item_colon' => __( 'Parent Work:', 'html5reset' ),
'all_items' => __( 'All Works', 'html5reset' ),
'add_new_item' => __( 'Add New Work', 'html5reset' ),
'add_new' => __( 'Add New', 'html5reset' ),
'new_item' => __( 'New Work', 'html5reset' ),
'edit_item' => __( 'Edit Work', 'html5reset' ),
'update_item' => __( 'Update Work', 'html5reset' ),
'view_item' => __( 'View Work', 'html5reset' ),
'search_items' => __( 'Search Work', 'html5reset' ),
'not_found' => __( 'Not found', 'html5reset' ),
'not_found_in_trash' => __( 'Not found in Trash', 'html5reset' ),
'items_list' => __( 'Works list', 'html5reset' ),
'items_list_navigation' => __( 'Works list navigation', 'html5reset' ),
'filter_items_list' => __( 'Filter Works list', 'html5reset' ),
);
$rewrite = array(
'slug' => 'works',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Work', 'html5reset' ),
'description' => __( 'pgworks projects', 'html5reset' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => ' dashicons-editor-paste-word',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'works',
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'work', $args );
}
add_action( 'init', 'work', 0 );