I’m not very sure how to phrase the title of this post but this a function that basically checks if the post type of the current post or of a given post matches the post type you have specified.
I created this function to check post-type in my single.php. I had a custom post type called ...