wp_get_post_categories
can only get POST categories not a custom post’s categories, try this instead:
$category = get_the_terms( $post->ID, 'custom-taxonomy-here' );
foreach ( $category as $cat){
echo $cat->name;
}
Check this link
Related Posts:
- How to show all posts of the category in wordpress?
- How to show related posts by category or custom post type?
- Structuring a product catalogue in WordPress [closed]
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to get the post type from a category id?
- Getting posts under the custom post type ui category
- Show custom post type filtered by category
- Showing posts from different categories and from custom post type
- Add custom post type settings to wordress default posts
- Problem with displaying posts in the CPT category
- Set a checkmark in a category based on a URL-parameter
- Get the category from custom post type
- Custom Post Slug same as Parents Category Slug
- How can I show 1 featured post in a styled element, and the next few below differently styled
- WP the_posts() on single-cars.php get category link
- Create new custom post and post category of same name
- Custom post types and ‘new WP_Query’
- How to Display Posts From Category Within a Custom Taxonomy?
- Showing custom post type categories in the menu
- Stores category posts in an array
- Restrict category access to specific users/groups. Author always has access
- Post Query not working
- Use post in multiple places on a page with multiple posts
- Am I mixing up the concept of posts pages and categories?
- Display all Categories except ones with a specific parent
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Post category behave like a Post in back office menu
- Save data is post using php front end
- How to show posts of the same category on a page?
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- Change Custom Post Type to Post + Category
- Only show current category post
- Post Editor: display categories from current post type taxonomy only?
- Custom Post Type used for FAQs Accordion
- Display all post types together
- show only one category posts in admin
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the ID of the latest post
- Change permalinks for posts but not for custom post types
- Add category to custom post URL
- How to add a button to custom post type’s posts-page
- How can I add a column/s to wp_posts table?
- Template tags to display custom post type posts in category template?
- WP Query group/order by category name
- Loop through categories and create tab for each
- Query custom post types
- get_queried_object error How to show post count by month in the taxonomy page
- Custom Post Types and Categories?
- Set a default category – if the user didn’t select one- before creating a post
- Deleting Custom Post type data using mySQL command
- Should I use custom taxonomy or custom post type
- How to query_post custom posts within default taxonomy?
- Custom Post Type With Categories
- Display posts from Custom Post Type in category page on front-end
- How to get all tags of a custom post type by id
- How to define which register_post_status goes to which register_post_type?
- browse by category and tags?
- Load Next WordPress Posts With AJAX?
- If there is only one post (show elements) else (show other elements)
- Custom Post Type Category URL
- Custom Post Type Categories URL not displaying posts
- WP Query results showing posts outside of category ID
- Better approach for a WordPress Inventory
- Showing all posts and custom post types by using one category
- How do I edit the WordPress post.php file?
- Posts are not rendering perfectly [closed]
- How I can made a custom post type to page templates?
- List all posts in taxonomy term
- How to properly use Categories with Custom Post Types
- how to redirect to a custom post template
- Post/Custom Post Type URL Access
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Adding /blog in front of single posts (only)
- Search CPT by tag ids
- Post template with breadcrumb needs to show page navigated from
- Publishing failed. The response is not a valid JSON response
- add all blog posts to folder
- Category permalinks don’t work even after flushing
- custom post type to post association in wordpress
- How to get all posts related to a taxonomy?
- Work and Display a Custom Post Type as a normal Post
- Most efficient way of showing children posts?
- Custom post types not displaying per category
- Custom post type with two templates
- One Post with different content, depending on a Page
- How To Display Category list from Portfolio post type plugin?
- Dropdown switching subcategories portfolio
- How to Arrange Support => Thumbnail
- Custom Post Type – Admin Columns
- Categories in custom post types
- Sorting custom post types by category?
- Select Category as Page Parent
- How to delete unnecessary custom post types in the UI
- Error 403 when posting comments to a custom post type from a different page
- How to make a non-public post on wordpress approval?
- How Do I Add a Custom Post Type URL to Content?
- Custom Post Types Permalink