What you are looking for is custom taxonomy (which has been mentioned in the comments). Which you create with the register_taxonomy()
function. There is a beginners guide here if you need it.
You will need to pass in an array of arguments. The most important is probably hierarchical
which is true for something like categories, or false for something like tags.
<?php
$object_type="lyrics"; // this can be any type including post, page, etc..
$taxonomy = 'my_featured_artists'; // this could be whatever you want it to be
$args = array();
$args['hierarchical']=TRUE; // this is probably what you are looking for.
register_taxonomy( $taxonomy, $object_type, $args );
I found a specific example of a taxonomy for music here. Give it a go and if you run into any specific problems you can always come back and ask more specific questions.
Related Posts:
- Exclude a category from WP_Query
- Custom Post Types on Category Pages
- Creating “static” taxonomies to choose from, inside custom post type?
- How to display regular posts & custom post types that fall under a category using just the generic category template?
- How to filter custom post types by custom category taxonomy
- Is there a way to use regular categories with custom post types?
- How to list all categories and tags in a page?
- Pagination not working with custom category template
- remove support for ‘Categories’ for a custom post type
- Remove date and category filters when editing custom post types
- Anyway to assign custom post types to a specific category?
- List with categories, subcategories and posts of custom posttype
- wp_list_categories and custom post types
- Structuring a product catalogue in WordPress [closed]
- Automatic category for a Custom Post Type
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- How can i list custom post type categories?
- Query Custom Post by Category
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How to display the categories of the post? (custom post type)
- Display Custom Category (taxonomy) Name in Custom Post Type
- Showing Custom Content in a Nav Dropdown
- CPT posts listed by category with custom rewrite URL, please help!
- Combining custom post type and post category
- Multiple custom post type loops in category.php
- Add category in post type dynamically
- How to get the post type from a category id?
- Insert HTML inside link in a walker
- Use regular category with custom post types
- Set menu active state for custom posttype and category, given custom taxonomy term
- How to change post featured image using a custom field of category?
- Getting posts under the custom post type ui category
- Show category ID on custom post type
- How to call in Custom Post-Type Categories?
- get_category_parents for custom post type taxonomy
- Separate custom categories from default category
- How to display custom taxonomies with links in filter menu?
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- Add custom post type settings to wordress default posts
- Hide parent categories when clicked, and show it’s childs
- Custom post type, organized by categories
- Custom Post Type and Category Base Rewrite Issue
- Multiple (two) category postings on the same page.
- School & class blogs: Categorize with categories or custom posts?
- Custom post type and category link together
- How to get custom posts sub category link
- CPT category hierarchy
- WP the_posts() on single-cars.php get category link
- Can I restrict category availability?
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- Invalid Taxonomy
- Displaying Custom Posts
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- Assigning a category to a custom post type in WordPress
- Stores category posts in an array
- category list with cutom post count
- Include custom post type custom taxonomies in Categories widget
- Get category if used in a custom post type
- WordPress custom post categories and subcategories on category.php
- Custom post type categories gives 404 error
- In the php, how can I have a category of a custom post type display?
- Set a Default CPT taxonomy by taxonomy id
- Pagination for a cpt filtered with a category
- assign array of category to custom post type
- Automatic Set Category For A Custom Post Type
- how to create custom taxonomy drop downs for parents and child
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- Categories manage
- Adding Custom Post Types to category/tag/author archives breaks header content
- Change custom post type permalink according to category
- Only show categories that have posts within custom post type
- Change Custom Post Type to Post + Category
- How to create groups like that in buddypress?
- Excluding category from loop not working
- Custom Post – additional param in the custom post URL goes to error page
- Update Cateogory Taxonomy Count for Attachment Post Type
- Help with Multi Level Category Archive Page
- Getting list of Categories for Custom Post Types
- Custom Post Type + Category archive
- Show custom post type in archive page by category
- I have a custom post type that I want to query a dynamic category name from a custom meta field
- How to call Shortcode categories for custom post types?
- Displaying wp post categories into my custom metabox
- How to filter posts by categories?
- Display a custom post type list by taxonomy term
- Stop header code from showing in category page?
- Custom Post Type order Title ASC
- WordPress custom post type post and category links 404
- Loop category including custom post type
- Highlight specific menu item when custom post is page
- Test if a Category contains certain Custom Post Types
- create category upon saving post and save post in that category
- How do I turn CPT automatically also into category?
- One set of categories for multiple custom posts
- display all posts in current category
- Choose custom post type template by category
- Are custom posts included when getting a categories’ posts?
- Is it possible for post and custom post type to share a category base slug?