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:
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.