Which custom post type does the current post belong to? July 12, 2022 by Tarik Billa get_post_type() should do what you’re asking.