Fixed adding a post from a selected post type.