News
News CPT
// Register Custom Post Type function torchia_news() { $labels = array( 'name' => _x( 'News', 'Post Type General Name', 'karma' ), 'singular_name' => _x( 'News', 'Post Type Singular Name', 'karma' ), 'menu_name' => __( 'News', 'karma' ), 'name_admin_bar' => __( 'News', 'karma' ), 'archives' => __( 'News Archive', 'karma' ), 'attributes' => __( 'News Attributes', 'karma' ), 'parent_item_colon' => __( 'Parent News:', 'karma' ), 'all_items' => __( 'All News', 'karma' ), 'add_new_item' => __( 'Add New News', 'karma' ), 'add_new' => __( 'Add New News', 'karma' ), 'new_item' => __( 'New News', 'karma' ), 'edit_item' => __( 'Edit News', 'karma' ), 'update_item' => __( 'Update News', 'karma' ), 'view_item' => __( 'View News', 'karma' ), 'view_items' => __( 'View News', 'karma' ), 'search_items' => __( 'Search News', 'karma' ), 'not_found' => __( 'Not found', 'karma' ), 'not_found_in_trash' => __( 'Not found in Trash', 'karma' ), 'featured_image' => __( 'News Featured Image', 'karma' ), 'set_featured_image' => __( 'Set news featured image', 'karma' ), 'remove_featured_image' => __( 'Remove news featured image', 'karma' ), 'use_featured_image' => __( 'Use as news featured image', 'karma' ), 'insert_into_item' => __( 'Insert into news', 'karma' ), 'uploaded_to_this_item' => __( 'Uploaded to this news item', 'karma' ), 'items_list' => __( 'News list', 'karma' ), 'items_list_navigation' => __( 'News list navigation', 'karma' ), 'filter_items_list' => __( 'Filter news list', 'karma' ), ); $rewrite = array( 'slug' => 'newsroom', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'News', 'karma' ), 'description' => __( 'Torchia Com News', 'karma' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields' ), 'taxonomies' => array( 'news_cat', 'news_tag' ), '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, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'news', $args ); } add_action( 'init', 'torchia_news', 0 );