See the question / answer on this link.
The answer have 2 different solutions, easy with default categories and taxonomies and also a solution with custom taxonomies only for media.
Related Posts:
- Order get_terms() By Custom Field
- How can I add the featured image functionality to a custom taxonomy?
- Filter by post category in Media Library
- Combine two taxonomies in a hierarchical tree
- Using URL parameters, list posts from category and custom taxonomy
- How to make custom taxonomy check boxes like ‘Categories’
- Different templates for parent and children categories/taxonomies
- cat_is_ancestor_of() for custom taxonomies
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- How to create non-unique sub-category slugs?
- How to convert regular categories to custom taxonomy?
- categories on attachment page
- How to get next previous category in same taxonomy?
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Getting WordPress custom taxonomy/category?
- Are Custom Taxonomy Templates Possible?
- Display empty taxonomy terms with get_terms()
- Order Taxonomy Term by date created
- How to display a description of a given category from a custom taxonomy
- How to get the number of child categories a specific parent category has?
- How can I convert some categories to a custom taxonomy?
- Category tree is flattened inside admin upon saving
- Get multidimensional array that reflects category hierarchy
- PHP Fatal error: Cannot use object of type WP_REST_Response as array in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- If statement within PHP echo
- How to know if it’s a child taxonomy?
- wp_dropdown_categories and custom taxonomy + custom post type
- Specifying multiple categories in URL (permalink)?
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- Limit number of terms that a custom taxonomy can save per custom post type
- Add Image Size for one Media Category Only
- Can you pre-check wordpress categories?
- Retrieve Image from Media Library by it’s category
- Change existing taxonomy settings when using custom taxonomy
- How to get the id from the custom category?
- One Specific Category To Permalink
- How to organize custom categories for filtering and selecting
- Custom sub taxonomy order by
- Add category only if post has custom taxonomy category
- Categories overview that links to page displaying posts
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- Get all media categories
- Add child category to parent on post creation and save
- categories on attachment page
- Get posts from specific taxonomy term
- Why custom taxomony not showing when create a post?
- Question on using custom structures for categories
- add slug beside name in Admin Category Checklists
- Target a specific category from a custom taxonomy?
- Get Categories Where Taxonomy Equals ‘n’
- custom page for custom Taxonomy
- Custom page category taxonomy 404
- Filter By Category Dropdown List With Custom Taxonomies
- query_posts by category_name and custom taxonomy
- Is it possible to create an alias/custom taxonomy for a category name?
- How to link a PDF file to a category URL
- Showing HTML if Post is In Certain Taxonomy Term
- I need to exclude from a query a category and a few custom taxonomies
- How could I write a get_categories_by_year() function?
- How to load several hierarchical categories from functions.php
- Assign a custom post to a custom taxonomy based on custom field value
- Posts not listing out sub category in hierarchy
- Post to inherit custom category background image from parent
- Custom Fields Value As Taxonomy
- How to get posts using category slug in ClassiPress?
- 3.1 post formats and specific categories/custom taxonomies
- Link posts together (relative, not grouped)
- How to fix select filter on category
- Migrate the posts of a category to another blog as a custom taxonomy
- List of post categories only associated to another custom taxonomy
- List taxonomy terms assigned to a post in hierarchical view
- Page category filter in admin dashboard
- How to set the same base url for two different taxonomies?
- Taxonomy custom check box meta field not getting saved
- Grab all the posts for particular category
- How can i echo next and previous custom category from a Taxonomy
- Image Upload Custom Form Field for Category and Custom Taxonomy
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- Using heirarchial tags or Custom taxonomies
- How to assign Categories and tags inside the TinyMCE Editor for each Image?
- Media Library Category Exclude Tree
- Media Library Categories
- Why use hierarchical taxonomies instead of many custom taxonomies?
- Renaming default category taxonomy?
- Media Categories as Classes on WordPress Gallery Shortcode
- How to Manage and link certain custom taxonomy?
- Dynamically creating content on custom URL without getting 404
- Display List of Categories Within a Custom Taxonomy
- How to exclude category and post_tag taxonomy while displaying custom taxonomy?
- New Category – custom taxonomy
- List Terms by category
- Media Library filter returns undefined function get_current_screen
- Most efficient use of custom taxonomies, categories, and pages
- Create Cross Promoting Categories in WordPress Using ‘pre_get_posts’
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- Featured image for links and categories
- How to Organize my Photo Albums?
- Converting Categories (with ACF fields) to custom taxonomies
- Taxonomy page wpml dropdown not working
- How can I get the categories and subcategories separately?