You need to use get_terms function
reference & examples here
taxonomy name is your category name, product_category
Related Posts:
- WP_Query by a category id and a custom post_type
- Why are posts from custom post type not displayed in “category” archive?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- category__in not working on custom post type
- how do I group content in magazine-style ‘issues’?
- Use standard WordPress categories with a CPT
- Regex problem in an add_rewrite_rule
- How can I add single catogory for custom post type?
- Custom edit post column – category not showing
- Get the post_type of current taxonomy or category page
- Categories and Tags not working!
- automatically save custom post type title as a category
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- get_categories() for only CPT
- category.php displays ALL posts instead of just those with the current category
- custom taxonomy archive by year
- Display Next/Prev when looping Custom post-types archive?
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- Weird problem happening with custom taxonmy when creating/updating posts
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- How to detect filter in URL in Category page?
- CPT Archive with core Category
- Replace li Items with divs with classes
- showing custom post types of a certain category only
- Get posts from a custom post type by child categories of a parent category
- get_posts() with custom post type does not work outside page.php
- Show custom post type filtered by category
- Show a Category X’s custom post type on Category X archive page?
- Multiple level category drop-down from the WordPress dashboard
- Getting categories of posts under a custom taxonomy
- How to get categories linked in posts for a specific post type
- WP Query with categories only shows one post and ignores the category
- How to edit this code to get the categories in achieve page?
- Get the category from custom post type
- How to create a gallery page with categories?
- Hierarchy and access control for Custom Post Types (CPT)
- Loop filtering Custom Post Types and/or Categories
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How can I show 1 featured post in a styled element, and the next few below differently styled
- How do you create a custom template to display a category with an image and related posts below?
- How can I list Custom Post Types created with the Types plugin under categories?
- Category.php template for custom posts
- Categories and tags for custom post types
- Category archive in with conjunction with custom post type is empty
- How to add current custom taxonomy slug to body class
- Assign category a default post type
- Meta data (Tags and Categories) for Custom Posts not showing.
- How to Display Posts From Category Within a Custom Taxonomy?
- Custom post types with categories in template
- Get Posts by Category, Tag , and CPT Taxonomy
- The Difference Between Categories and Tags and Taxonomies and Terms
- Get assigned post categories
- Default Category Page not showing custom post type which has taxonomy category
- Custom Post Type posts not showing in category
- Post Query not working
- Get terms for a specfic post from multiple taxonomies in custom post type
- Add Extra Category Field to CPT Categories
- Category Name with Custom Post Type
- Am I mixing up the concept of posts pages and categories?
- Custom post type, taxonomy and admin bar
- CPT archive page – show one post from each taxonomy term
- how to organize my categories or should I do custom post types for some?
- Order Categories by Hierarchy?
- Multiple categories assigned to a single product breaking the breadcrumb
- How to divide Subcategories into pages of parent category wordpress
- Custom front-end form for adding post – Category problem
- Custom post type archive page filters
- Custom Post Type Category Displaying ALL Sub Categories as well
- Control over custom post types on a specific page
- Custom query using one category that is used in all custom post types
- get taxonomies from terms
- create a “add icon” field in taxonomies page
- Feature image Gallery made from Custom Post type + Categories
- Show Custom Post Type based on Category on Archive Page
- Convert With Custom Post Type
- Get meta values from parent post and save in child post
- Custom category taxonomy – archive page not showing up
- Use Category for Custom Post Type – But Need Another Separate Archive Page too
- Only show current category post
- how to use two permalinks for one custom post type based on categories
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- archive.php can’t find categorized posts
- Custom Catagory not found
- Page to show custom posts and one category
- How can I list custom post by custom category?
- Using get_terms() as shortcode attribute
- How can I set up the URL for a category archive for a custom post type?
- how to show perticular category posts in custome page
- Use only selected regular categories for a Custom post form
- Bulk remove category from custom post type?
- Problem with menu categories doubling up when updating database?
- Custom Post Type or just Post Categories?
- Remove slug from Custom Category Permalink + dual-category permalinks
- How to query posts by category with the_title();
- Show custom post type on post category page doesn’t work / breaks navigation
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Get all posts of any post type in a category from REST API