List Story
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => 'Lists',
'singular_name' => 'Lists',
'menu_name' => 'Lists',
'name_admin_bar' => 'Lists',
'parent_item_colon' => 'Parent List:',
'all_items' => 'All Lists',
'add_new_item' => 'Add New List',
'add_new' => 'Add New',
'new_item' => 'New List',
'edit_item' => 'Edit List',
'update_item' => 'Update List',
'view_item' => 'View List',
'search_items' => 'Search Lists',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'list_story',
'description' => 'List Style Stories, including DIYs',
'labels' => $labels,
'supports' => array( ),
'taxonomies' => array( 'category', 'post_tag', 'brands' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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( 'list_story', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type', 0 );