Set correct post type