Just added 'all_items' => __( '' ),
in labels array.
Replace your code with below code
register_post_type('news', array(
'labels' => array(
'name' => __( 'News'),
'singular_name' => __( 'News'),
'add_new' => _x( 'Add New News', 'News'),
'add_new_item' => __( 'Add New News'),
'edit_item' => __( 'Edit News'),
'new_item' => __( 'New News'),
'view_item' => __( 'View News Details'),
'all_items' => __( '' ),
'search_items' => __('Search News')
),
'public' => true,
'show_ui' => true,
'menu_position' => 6,
'has_archive' => false,
'rewrite' => array('slug'=>'news'),
'supports' => array('title', 'editor' ),
'taxonomies' => array('category'),
'menu_icon' => plugins_url('icons/news.png', __FILE__),
)
);
Related Posts:
- Query menu_order custom post types
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- How to display custom WP menus?
- Get custom post type categories to show up in menus
- cpt not display inside nav menu
- Adding a Custom Post Type into the menu screen
- Remove current_page_parent nav class from blog index when in CPT
- Get Custom Taxonomy ID within loop
- List page for custom post type?
- wp_list_pages not showing cpt as I expected
- Which User Role for Custom Post Type Menu – wp_nav
- Display children and grandchildren of a custom post type
- Menu highlight custom post type archive
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Add the current menu item CSS class to a custom page type archive in WordPress menu
- Using several custom fields as custom post title
- Adding custom tables to WordPress
- Set menu active state for custom posttype and category, given custom taxonomy term
- Return the thumbnail meta data for getter and setter
- Pagination for custom php code
- What’s the difference between same wp functions get_posts(); functions in different form?
- how to check if custom post type column already exists?
- Custom Post-Type not in admin menu
- Page vs Custom Post Types Differences/Issues
- Can I list a custom post type within another custom post type in the admin area?
- How to make this menu drop down or like accordion
- I would like to have different styles for my posts based on the content of each post
- Checking if Post Title is Unique as Loop Criteria
- Custom Post Types don’t highlight in menu nav
- Using default WP menu functionality to link to custom post-type listing?
- Set URL link to featured image of custom post type
- On update or create post redirect to current post position in list
- How do I add a custom screen for a custom post type to be called from custom post row action?
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Single custom post type’s menu ancestor/parent is Posts archive page
- Problems wp_insert_post and save_posts filter
- Cant get paginations on single.php to work with my custom post types
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- How can I group posts by months and years?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- How can i automatically add CPT single pages as sub menu items
- Not sure why this template for custom post type posts isn’t displaying anything. What’s missing?
- Saving fields in a drop-down in WordPress
- Assigning a category to a custom post type in WordPress
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Show message when query has no posts
- Query entries from custom post type in an ACF flexible content field
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- post_content is stripping HTML when adding a new post? [closed]
- Querying a custom post type, but not show duplicates
- Template code to split a post and print a custom field?
- Accessing a protected property of a post
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Creating on-page options for Custom Post Type
- Custom Posttype and menu classes
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- WordPress sitemap with Custom Post Types
- How can I sort the order of multiple custom field values in a custom post type?
- Custom post type page with parameter
- Display All Courses in Course Archive Page
- Custom fields array to display it monthly
- How to show the post which checkbox is not selected
- php dynamic content inside shortcode
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Check that a slug is present in the get_terms request
- open custom post type in popup window instead of page
- Get category name of custom post type
- WordPress – display relationship between blog posts and custom posts
- pagination problem listing custom post types of taxonomy in wordpress
- In the php, how can I have a category of a custom post type display?
- I’m trying to create an if statement that will only display my button link for tickets if its under ‘admission-event’… what is wrong with my code?
- Taxonomy doesn’t follow slug permalink structure
- Looping to organize and display custom posts by category using PHP and WordPress
- Custom Post By Category
- Display a list of sub-pages of Custom Post Type Parent Page
- test if something is a post or a taxonomy
- CPT: execute code after load if parameter is set
- Create unordered list from custom field type entires separated by a comma
- ACF Post Content Not Being Searched
- Show tags of custom post types in WordPress
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- Strange behavior on WP_query
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- How to Fix WordPress 500 Internal server error due to custom post type
- Exclude Custom Post Type from shared Custom Taxonomy
- How to call Shortcode categories for custom post types?
- Trying to combine multiple WordPress queries
- Stop header code from showing in category page?
- Custom Loop for custom post type. Compare by meta_value?
- Query Custom Post Type by Tag
- Highlight specific menu item when custom post is page
- How to string lines from the_content() hook in WordPress?
- Get custom post fields and display them
- PHP Button Custom link [closed]
- How to dynamically register custom post type
- How to I add count of custom posts listed in a post as a prefix to its title
- how to display custom taxonomies in front page