The only solution I could imagine is removing, rewriting, replacing the meta box.
// First remove the original one
function wpse21483_remove_catbox()
{
remove_meta_box( 'post_categories_meta_box', 'post', 'side' );
}
add_action( 'admin_menu', 'wpse21483_remove_catbox' ); // not sure about the hook
function wpse21483_new_catbox()
{
// re-define - take a look at /wp-admin/include/metaboxes.php
}
// Hook the new one
add_action( 'add_meta_boxes', 'wpse21483_new_catbox' );
Edit: Maybe you can use a the filter for the categories dropdown
function wpse21483_alter_catbox( $output )
{
global $current_screen;
$id = $current_screen->id;
// abort if not on post screen
if ( $id !== 'post' )
return;
// search/replace the category
return $output;
}
add_filter( 'wp_dropdown_cats', 'wpse21483_alter_catbox', 10, 1 )
Related Posts:
- Remove Categories / Tags From Admin Menu
- Setting Custom Sort Order of Posts within a Category
- Exclude drafts in all() view of edit.php
- Categories box not showing on post edit pages
- How to change the layout and styling of posts according to their category in WordPress?
- Add default content to post (for specific category)
- Show One Category on Post
- Add custom field to category of custom post type
- Do I use custom post type or something else?
- How to place HTML below the title of the (custom) post overview
- Edit custom post type admin menu link
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- I am unable to publish/update post
- How can i limit the number of posts created per category?
- WordPress custom Query for Posts in Category display posts multiple times
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Set Default Category to Username
- Develop Admin Panel Page
- How show categories in admin and get that selected to show posts in index
- if in category but only with post meta
- How to call posts under a specific category on static front page?
- Static pages not working
- How to display only one category in a custom post type?
- Can I style single post that are in multiple catergories?
- Custom post styling per category?
- Show custom post category for single post
- Add Categories To Custom Post
- issue in wordpress auto delete post and redirect to another 1
- Static text above category page
- Show a Category Specific Info Box
- Is possible to create a custom link that creates a post that’s already categorized?
- Add default content to post (for specific category)
- Display ONLY Latest Post From Several Categories
- Taxonomy Category category.php not working
- Post’s arent displaying
- Only show posts belonging to multiple cateogries at same time
- I have a website issue I am trying to resolve
- How to add an admin notice upon post save/update
- Including categories in search results
- Post/Page Preview Template
- Count how many posts in category
- Custom Single Post By Category
- using wp_update_post on save_post
- WordPress plugin to publish to multiple remote WordPress blogs
- Convert custom fields to post categories
- Query posts from current year
- How to wrap every image in a post with a div?
- Order post by year DESC and month ASC
- How to remove bulk edit options
- plugin for wp_list_categories with posts
- Send email to user that his post has been rejected
- Limit function to specific post category
- Custom post type permalinks breaking due to 3.1 bug fix
- Get post id in wordpress action?
- Remove slashes (both before and after) in relative post url
- How can I remove posts of a certain category from homepage after a specified time period?
- How to include a post type in the admin/backend?
- Should I use posts or pages in this scenario?
- Adding custom fields to bbpress reply form
- Prepending %category% onto default posts fails
- List all categories with featured image from post?
- Permission issue with custom post type – not added to menu – by plugin
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Is it possible to customize the post according to post format in single.php?
- How to create a “latest news” page showing a list of posts from blog category
- Display the 2nd category name of a custom post type without error if its null?
- How to have more than one page for your posts if you have 8 posts but can store max 4 on a page
- Extract wordpress posts content and category content
- datepicker value in mysql
- How to restore deleted post related with deleted users
- Highlighting Current Category in the Archive and Feeds page
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Change modified date to current date when title updated automatically
- How to put the author of the post in the comments?
- How to add a custom class attribute into code wrapper? [duplicate]
- Redirecting wordpress search query to archive page
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- How to display related post from same category in single.php
- Save All Post Permalink From A Specific Category into a .txt file
- show image gallery in archives or category page
- get current index of post content in category page
- Dynamically load posts based on category
- Set featured image on creating new post
- Get Categories & Posts With Type Article
- Set multi posts random categories and tags
- Add new post only in assigned category
- Changing the Category for all posts of an Author
- How to retrieve custom field values and save again as array
- Is it possible to have dynamic post id # in add_menu_page()?
- Admin Post List Only Show One Category
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Checking if some condition is matched before inserting post into database
- Same sidebar in all posts as in the category
- How do I list categories and the common categories for posts beneath those categories?
- Latest Posts not in the right order
- How to Include a common category in a custom Category Search
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Filters do not work when there are multiple (one works)