Again improved post type adding function to prevent warnings