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?
- Is There a Difference Between Taxonomies and Categories?
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- What is the difference between a “tag” and a “category”?
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- Control term order on a per-post basis
- get all tags from category
- Filter by post category in Media Library
- 404 Error On Category and Tags Pages
- Why aren’t sub-categories nested after creating post in the WP Admin?
- 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
- Sort posts by tags in category pages
- How to search for categories and/or tags?
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- Filter categories using tags
- Sticky posts on home page, search, tag and archives without plugin
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Category and tag with same name
- Create subdomains for tags and categories
- In the tag archive – display count of posts for each category they belong to
- Is it possible to disable certain user roles from creating tags?
- Automated adding of one tag to all the posts in a category
- Category menu item and its last 10 posts as sub-menu
- Exclude most recent posts from specific category in wp_query()
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- How to totally get rid of Category in my blog?
- Root level category, tag, author and archive pages to work
- Showing all the posts in one page?
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Deleting All tags except categories Wp database
- Is it possible to put tags and category information in the post as text?
- Category checkboxes in upload modal
- Remove “Parent” Selection When Adding/Editing Categories?
- Script to duplicate categories as tags
- Search by word, category, tag, author
- How to stop wordpress from showing the selected category on top of others in the category selection?
- Remove Categories and Tags from Admin Dashboard
- How to filter archives both by category and tag?
- 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
- Get tags specific category
- 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
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Category vs Tag vs Table
- Help with multiple dropdown tags search
- Custom WP_Query for current category (in category.php)?
- Hide tag and category boxes from the post editor
- Retrieve all posts within tag OR category?
- How to find the number of Tags a post has?
- How to not treat categories as tags in feeds
- Categories: A Greenhorn Question on Strategy (Not Code)
- Add Post Screen Keep Category structure
- How can I enable a TINYMCE rich text editor in the admin interface?
- How to customize tag and category post listings to show introductory content?
- Are Category or Tag Archive Pages Possible?
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- How can I duplicate categories and tags?
- How to run select query of post with category and tags for API?
- Making a tourism information website [closed]
- Random post + categories + tags
- Search Posts / Pages with multiple options?
- How get permalink for the current category or tag?
- Display tags from specific category in select fields
- Offline WordPress Application
- Changing permalink from /postname/ to category/postname/
- Find out which user created a category or tag?
- 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
- How to make 2 tag feeds show up on 1 page?
- Different templates for different category tags
- Site search needs to find posts for category topic AND Tag or keyword thats not in the post
- Pagination is not working properly in Product Category/Tag pages
- WordPress admin categories sort show is wrong
- Get link which associated with a specific category and tag
- How to get related tags based on a category?
- 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
- Admin comments and user restrictions
- menu using category and tags
- Custom SQL Query: Get all posts with category id and a concated list of tags on each post