Title: Problem with WordPress recognizing my Custom Post Type
Last modified: August 19, 2016

---

# Problem with WordPress recognizing my Custom Post Type

 *  [mattloak](https://wordpress.org/support/users/mattloak/)
 * (@mattloak)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/problem-with-wordpress-recognizing-my-custom-post-type/)
 * I registered a custom post type “lom_video” and all appears to be working well
   except for one thing. I was troubleshooting why a conditional tag wasn’t working
   so I put this code into the post template to make sure wordpress was recognizing
   the post type:
 * `<?php echo get_post_type(); ?>`
 * It should display “lom_video” but instead it displays “post”. All other indications
   show that it recognizes it as “lom_video”…
 * 1. It’s using the custom post template I set for lom_video
    2. Published posts
   are using the proper url structure I set for this type of post 3. When I preview
   a draft the url ends with: “?post_type=lom_video&p=10374&preview=true”
 * but for some strange reason when I have it display the post type it says it’s
   a “post.”
 * What’s going on here?

The topic ‘Problem with WordPress recognizing my Custom Post Type’ is closed to 
new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [post-type](https://wordpress.org/support/topic-tag/post-type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mattloak](https://wordpress.org/support/users/mattloak/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/problem-with-wordpress-recognizing-my-custom-post-type/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
