Update post type logic.