latching problems

my baby is one week and five days old. as soon as I had her they put her on me to breastfeed, at first I thought it was okay because I’m a ftm so I didn’t know the feeling and how it felt if baby was latched correctly or not. well the second day my nipples were hurting so bad and well that’s kind of how I figured out that my baby wasn’t latching correctly. I now use nipple shields but at least once a day I try to do without it to see if she will latch and she does good but then she’ll come off and try to get back on but not correctly so one of my nipples is hurting after trying to get it down correctly for 20mins. (failed btw) any advice on what I can do to get a good latch or what you mommas who’ve struggled with latching have done to get baby to latch correctly