Need advice about anal

My partner really wants to try anal. We've tried before but it hurt so bad that we ended up stopping. He didn't even get the head in all the way. Any advice?