if you need to pre-create some terms you can add the following into the init function that registers the taxonomy. it will create the term foo in the recordings taxonomy
if (!term_exists( 'foo', 'recordings') ){
wp_insert_term( 'foo', 'recordings' );
})
Related Posts:
- Get the first post term
- Adding Categories to a WordPress Custom Post Type?
- Creating “static” taxonomies to choose from, inside custom post type?
- How to build a complex page structure
- WP_Query ignores post_type in category view
- Load custom posts with same tag as page
- Is there a way to use regular categories with custom post types?
- Get categories for a specific post – Custom post type
- How can you make permalink work for custom post type and taxonomy?
- Include custom post types in categories widget
- Filter get_categories() for taxonomy term in WordPress
- Listing and accessing categories for a custom post type
- How to show related posts by category or custom post type?
- Structuring a product catalogue in WordPress [closed]
- Taxonomy list. Order by a specific custom post type count
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- Categories not working as expected with custom post type
- get_terms won’t display product_cat or any other custom taxonomies when specified
- next_post_link and previous_post_link in custom post type single page, in same non-custom category
- Showing Custom Content in a Nav Dropdown
- Show Post Count of a Category
- Get categories and descriptions from custom post type
- Combining custom post type and post category
- How to create new category for custom post type?
- Filter categories of posts with checkboxes
- Use post as category
- How to show CPTs in term archive
- How to change post featured image using a custom field of category?
- Display all posts in main category and 1 subcategory
- Show category ID on custom post type
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- How to call in Custom Post-Type Categories?
- get_category_parents for custom post type taxonomy
- Custom post type getting wrong categories and tags
- Categories of custom taxonomy don’t show any posts
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- Remove CPT name from permalink but add %category% instead
- Set a checkmark in a category based on a URL-parameter
- Custom Post Type and Category Base Rewrite Issue
- I am having Trouble to get list of Categories of Custom post Type
- Custom post type and category link together
- Categories filtering in new post
- List of Posts and Categories
- WP the_posts() on single-cars.php get category link
- category page for custom post type
- Getting used tags per post type
- Why does accessing url by category cause issues with post types?
- How can I have different content for different countries?
- Navigate posts with different post type that are in the same categories
- Invalid Taxonomy
- Displaying Custom Posts
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- Include custom post type custom taxonomies in Categories widget
- custom query with custom post type and category slug
- Restrict category access to specific users/groups. Author always has access
- WordPress custom post categories and subcategories on category.php
- get_terms() parent, child and grandchild
- Use post in multiple places on a page with multiple posts
- Custom Post Type Custom Archive Page Not Working
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Archive Template being used instead of Category Template for Custom Post Type
- 4 posts per page from single category
- Menu’s breaking, now showing all page links on site
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- category.php not showing custom post types
- Post category behave like a Post in back office menu
- Save data is post using php front end
- Modify category permalink to use post type slug
- How to output custom post type title on custom page with category next to it?
- Cannot use object of type WP_Error as array display category
- Create custom post type categories
- Cannot get to work tax_query array for terms
- Set a Default CPT taxonomy by taxonomy id
- Automatic Set Category For A Custom Post Type
- how to create custom taxonomy drop downs for parents and child
- Only show categories that have posts within custom post type
- How to create groups like that in buddypress?
- How to Show all Values in category.php page using post_type
- Getting list of Categories for Custom Post Types
- can’t see categories in appearance-menu-categories
- Custom post type URL – filter by taxonomy
- Custom Post Type + Category archive
- Exclude categories For Custom post types
- 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
- Display all post types together
- Trying to create hierarchy between 3-4 custom post types
- Having some trouble properly displaying Custom Post Types in templates
- Customize category URL
- Displaying wp post categories into my custom metabox
- WordPress custom post type post and category links 404
- Custom post type and category permalinks
- Bulk edit for custom taxonomy
- show only one category posts in admin
- 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?
- Categorizing Custom Posts in Bulk Based on Title