a simple way to hide it would be to find the ID of the category li
and use css to set it to display:none.
function hide_the_category(){
?>
<style type="text/css">
li#category-4{
display:none;
}
</style>
<?php
}
add_action( "admin_head", "hide_the_category" );
Related Posts:
- Checklist of selected categories
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Use tag interface for hierarchical taxonomy?
- Moving Categories submenu to Media, but still opens Posts menu
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Remove “Parent” Selection When Adding/Editing Categories?
- How to stop wordpress from showing the selected category on top of others in the category selection?
- Render Selected Categories in Admin Edit Post Screen differently
- Add Post Screen Keep Category structure
- How can I enable a TINYMCE rich text editor in the admin interface?
- How to filter out Categories for specific post types on WordPress Admin?
- Automatically exclude categories from metabox based on title
- WordPress admin categories sort show is wrong
- Category control subcategories
- WP admin broken. Not saving catgories or adding categories to menu
- Admin comments and user restrictions
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- add slug beside name in Admin Category Checklists
- Using in ‘category_name’ in ‘$query->set();’?
- Change Default Content when Creating a Post based on Previous Category Choice
- Check with Jquery if second level checkbox from categories are checked
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- Limit post top level categories to one
- Using a template page parent breaks page
- Show parent-child relationship for categories in the wordpress admin
- why is the delete option missing from just one category?
- Remove category number fill
- Limit authors on specific catogories
- Is There a Difference Between Taxonomies and Categories?
- WooCommerce: List All Categories
- Get rid of WordPress category, tag and author archives?
- How can I hide a category from Contributors in the edit/add new post screen?
- Multiple post categories – single permalink
- Wrap Post count in a span
- wp_nav_menu not appearing for a couple pages
- Trash bin for categories
- Display one category in one page
- Display all posts with same title
- Show children of top level category only
- is_archive() content being shown instead of is_category()
- Check is category parent or not from its ID
- Add custom taxonomy under the category title
- Retrieve all posts within tag OR category?
- Include template before a loop
- How to customize tag and category post listings to show introductory content?
- Include posts from feature category in pre_get_posts
- Looking for the best solution to build this Blog structure? Picture attached?
- How Can I Display Categories Description
- Specified number of categoy posts not showing correctly
- Display Slug instead of Name
- Filtering multiple categories via the URL
- Remove sub-menu item from admin menu
- Multiple categories with common subcategories
- Counter in loop in foreach
- How to limit number of attachments
- Show category name and new articles and display page numbers. What function to use
- Add child category to parent on post creation and save
- wp_list_categories in in nav_menu
- Sub category templates
- How to use an array of categories as a dropdown?
- ACF add custom fields to categories and display
- How to add custom color fields to the category edit page?
- How to create a custom categories page
- Select posts from Category
- Target a specific category from a custom taxonomy?
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Searching for a category returns nothing if category is empty
- How to get nav to show current_page_parent class when on regular post (not blog), differentiated by category
- How to exclude posts from category posts count
- I would like to feature a tip on the homepage
- Redirect depending on category chosen
- Problem: retrieving parent category’s first post
- Category URL Management
- How do I export the headlines of all the blog posts in a single category?
- how can we bring category metabox to Media Library/Upload New Media Page
- How can I display a list of categories of my posts
- Category post count is not correct
- 404 on category URL
- Problem creating wp categories
- List of post categories only associated to another custom taxonomy
- List all categories and count number of posts within based on custom date
- Pagination for custom categories template
- Category URL’s 404 after setting category base to ‘.’
- How to allow each editors to only edit certain categories?
- Bulk assign posts to a category using SQL (MySQL)
- sort post category listing
- Query post if has two of the categories
- Display Category description
- Display all posts from specific category
- How to use categories, sub-categories and customize navigation view
- Hide empty category on woocommerce
- How to apply wordpress ‘with_front’ = false for categories?
- Custom Category Archive Pages
- How to get multiple loop in category.php, my scripts becomes madness
- Custom loop by url
- how to display page title only for child category pages
- Display post content from category name using ajax
- How to display the category featured images [closed]
- Echo Category In Loop
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected