To add to what @brasofilo answered 3 years ago, this is what is necessary in the current menu system (WP v4.5.1).
add_action( 'admin_head-edit-tags.php', 'modify_menu_highlight_wpse_43839' );
function modify_menu_highlight_wpse_43839()
{
if( 'post_tag' == $_GET['taxonomy'] )
{
?>
<script type="text/javascript">
jQuery(document).ready( function($)
{
$("#menu-posts, #menu-posts a")
.removeClass('wp-has-current-submenu')
.removeClass('wp-menu-open')
.addClass('wp-not-current-submenu');
$("#menu-media, #menu-media > a")
.addClass('wp-has-current-submenu');
});
</script>
<?php
}
}
Hope this helps!
Related Posts:
- Checklist of selected categories
- Use tag interface for hierarchical taxonomy?
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Control term order on a per-post basis
- Filter by post category in Media Library
- Rewrite URL with category and tag combined using WP_Rewrite
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Using URL parameters, list posts from category and custom taxonomy
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Create subdomains for tags and categories
- Automated adding of one tag to all the posts in a category
- How to totally get rid of Category in my blog?
- Showing all the posts in one page?
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Is it possible to put tags and category information in the post as text?
- Remove “Parent” Selection When Adding/Editing Categories?
- Script to duplicate categories as tags
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- display most popular tags of category?
- Render Selected Categories in Admin Edit Post Screen differently
- Can paginate_links() be customized for a specific category or tag?
- Any way to assign Post Categories and Tags to Links?
- Add Product categories to WordPress menu without losing hierarchy
- How can I duplicate categories and tags?
- How to run select query of post with category and tags for API?
- Random post + categories + tags
- RSS/XML of all Categories and/or Tags
- Get Tags specific to Category using WooCommerce plugin
- 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
- Needing a snippet for listing category specific tags
- How to display categories which contains particular tag?
- “Categories” for six authors [closed]
- How to list categories within tags?
- category permalinks
- Category control subcategories
- How to “group” (categorize) the Pages together?
- Is There a Difference Between Taxonomies and Categories?
- Use Tag input metabox style for Categories
- Get all media categories
- WP admin broken. Not saving catgories or adding categories to menu
- Custom SQL Query: Get all posts with category id and a concated list of tags on each post
- Have multiple category queries from the URL been fixed yet?
- Related Tags not in category
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- scaleability of tags
- How do I add a tag slug to a category URL to filter posts?
- Show the amount of posts in a tag in a specific category has
- Display all product tags associated with a specific product category
- How replace individual elements in the RSS feed with a single string
- Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)
- Show parent categories and sub categories but not grand children categories
- Change categories count to include media attachments
- Conditional category & tag statement
- Media (images, videos, etc.) not showing on Category page
- Include either name or slug in the include parameter using wp_list_categories?
- List all posts of certain category which share some tags
- How can I filter posts by tag on the fly
- Retrieve post tags from from main wp_query
- Advanced permalinks structure
- How can I include custom category and tag base in template files?
- Custom menu with categories and tags
- display specific category when website loads
- Automatically adding tags and categories into Post Excerpt for searching
- How to filter tags by category?
- Count how many posts have a specified tag AND category
- How to add all subcategories as submenu in WordPress menu
- How to prevent tag “iframe” from being deleted from the heading description of rubric?
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- echo $category[0]-> cat_name; shows only one category name
- When creating category, it creates automatically tag, or, when creating tag, it creates automatically category in same name
- Using heirarchial tags or Custom taxonomies
- Balance Tags to the_content Words Length
- Category and tag urls return 404 error
- Using a template page parent breaks page
- How to echo Tags and Categories as plain text
- Categories and Tags Conflict after Woocommerce Installation
- Exclude posts with certain tags in category archive
- ACF Gallery with Media Categories – how do display categories and sort
- How to exclude category and post_tag taxonomy while displaying custom taxonomy?
- 404 error when i try to search by category or by tag
- How to remove specific categories from tag archives?
- Page Type with Category Link
- A simple question regarding tags and categories
- Display related posts with same category or same tag return blank
- How can I allow people to ‘subscribe’ to categories?
- How to add an empty entry to masonry?
- Own Custom Tags/Category page ( posts)
- Loops in category description
- How to create a category or tag available exclusively to the admins and not to the users?
- Tracking multiple tags or categories
- How to load jquery tag-it plugin into admin?
- Modify functions.php to add a term ‘uses-theme’ set to theme name on post save
- List products from current category
- Anyway to hide a Category in the Categories section when adding/editing a post in WP Admin?
- Show parent-child relationship for categories in the wordpress admin
- Remove category number fill
- Moving Blog and Changing URL