Title: custom post type IDs
Last modified: August 20, 2016

---

# custom post type IDs

 *  [liquidws](https://wordpress.org/support/users/liquidws/)
 * (@liquidws)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-ids/)
 * can anyone help me on how to get the category ID for Custom Post Types?
 * thanks in advance

Viewing 1 replies (of 1 total)

 *  [Big Bagel](https://wordpress.org/support/users/big-bagel/)
 * (@big-bagel)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-ids/#post-2385817)
 * Do you want the ID of a category assigned to a post that is of a custom post 
   type? Post types themselves don’t have numerical ID’s like taxonomies (unless
   I’m mistaken).
 * To get the custom post type of the current/a specified post, you can use `get_post_type()`:
 * [Function Reference/get post type](http://codex.wordpress.org/Function_Reference/get_post_type)
 * If you want an actual object to work with:
 * [Function Reference/get post type object](http://codex.wordpress.org/Function_Reference/get_post_type_object)

Viewing 1 replies (of 1 total)

The topic ‘custom post type IDs’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Big Bagel](https://wordpress.org/support/users/big-bagel/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-ids/#post-2385817)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
