7 month old and constipation

Sarah
Anyone have struggles with this ? She now feeds solids twice a day usually one vegetable and a fruit 
Breakfast is oatmeal and a fruit 
Dinner is usually typical vegetable and another fruit 
Sometimes I give her yogurt at lunch and she has the teether cookies occasionally 
Lately she has been pooping more like play doh And little at a time 
She appears to be trying to poop all the time and think she's constipated 
I gave prune juice and she's eating pears .. I also bought pear juice as well I heard that helps 
Now she has a diaper rash that looks painful prob from all the diaper changes as I.m obviously changing her each time she poops (even though every time it's little)