get_the_category
is the most obvious answer. Per the Codex:
Returns an array of objects, one object for each category assigned to
the post. This tag may be used outside The Loop by passing a post id
as the parameter.
Or wp_get_post_categories
as in this example from the Codex:
$post_categories = wp_get_post_categories( $post_id );
$cats = array();
foreach($post_categories as $c){
$cat = get_category( $c );
$cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
}
But your question is very light on detail. It is hard to tell exactly what you need.
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Combining Multiple Taxonomies in one URL
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- Why does my custom taxonomy show a total count across all post types
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- Why does a custom post type need the ”hierarchical’ args setting?
- ‘No pages found’ in Dashboard after registering custom taxonomy
- Custom Post Type with Nested Taxonomy and Template Files
- How to display recent posts added in custom post types
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Query for posts in 2 taxonomies
- Custom post types – show specific posts
- custom taxonomy archive by year
- Add nonexisting pages to navigation
- How can I filter by taxonomy on a custom post type’s page?
- Can custom taxonomies items have attached properties?
- Associate custom post types with normal posts
- WP 3.0.5 – Custom posts matching 2 taxonomies
- Custom Post Type Loop within Shortcode
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
- Custom Taxonomy URL are redirecting to page with the same name
- Filtering WP_Query Dynamically on the Front-End
- Loop custom taxonomy to get lists of cutom post types?
- Hierarchical Custom Post Types in Array
- Making certain categories of CPT not publicly queryable
- Query with no terms uses index.php template instead of archive.php
- Conditional Query of Custom Post Type and custom taxonomy
- Is $object_type truly required with register_taxonomy()?
- Show a Category X’s custom post type on Category X archive page?
- custom taxonamy and post type
- Taxonomy custom post type URL
- custom-taxonomy/post_name instead of the default post_type/post_name
- Getting categories of posts under a custom taxonomy
- Custom taxonomies relationship
- How do I display the taxonomy for a custom post type in an array
- Suggested Post and Taxonomy structure
- Display post content with respect to its title?
- Use custom walker to add taxonomy terms to main nav menu
- WP_Query orderby and tax_query
- Custom Taxonomy not being saved on custom posttype
- Add term to custom post type on draft
- Multiple tag cloud filtering
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Show all tags on custom post type
- Get parent category id from child category page for custom taxonomy
- Trying to get custom post of a custom taxonomy
- Creating custom post type with custom taxonomy and custom fields programatically
- How to get only child terms from a custom taxonomy of current post type?
- How can I create an automatic drop down menu with my tags?
- How to see posts in taxonomy endpoint
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- sort CPT on Custom Taxonomy Archive page
- REST filters only firing when I have a param set
- Cannot choose custom categories for custom post type in post editor
- WordPress custom post type and taxonomies
- Arduous WordPress Custom Post Type Permalink Path
- Modifying rewrite rules to use /category//
- Custom Post type Query by Taxonomy
- Custom post not appearing under custom taxonomy category
- Order custom posts by taxonomy, then by meta_key
- Safe to throw 404 error in request filter?
- How to filter Multiple taxonomies with radio buttons
- ACF – Retrieve custom taxonomy from a relationship field
- Restrict access to custom post type based on its taxonomy terms
- Create loop from selected terms in ACF taxonomy field
- Sort custom posts by date and then by taxonomy
- Display custom post types in dropdown with option “all”
- How to select custom posts thats are tagged with multiple taxonomies using wpdb
- How is possible to know ID of taxonomy-{taxonomy}.php page for ACF fields
- Display CPT Category List as Shortcode
- Aloha! VERY broad CPT questions. Looking for the theory/best practices behind it
- Dont know why my custom post type not add_post_meta
- Taxonomy shows up twice on Custom Post Type
- Custom post type single with custom URL structure
- WordPress custom post type taxonomy paging
- List posts that have the current url taxonomy
- Back, Next, and Previous links for the REFERRING term archive
- Query posts by multiple custom fields
- Display title of all custom posts from same taxonomy term on a custom post template
- wordpress does not see the correct custom taxonomy hierarchy
- Getting Custom Posts with Custom Taxonomy
- Get category list & taxonomy list from different post type using post id?
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- How to get all posts assigned to a taxonomy term only?
- Custom post type based on existing one
- Custom Taxonomies in body class with parent slug
- Multiple archives for cpt, taxonomies, terms
- Generating a radius search on postmeta-metavalue and adding a taxonomy to query
- How to pass taxonomy terms to WP_Query along with $args?
- Display custom Taxonomies same as listing Categories
- Changing custom taxonomy’s slug as required?
- Archive custom template from search
- Changing checkbox array from single to multiple select
- Get all terms assigned to a post from different taxonomies
- Links in archive not including taxonomy parameter
- Show custom category archive as front page and remove taxonomy slug from urls