A baby's breastfeeding needs definitely evolve over time, and certainly change as solid foods become part of the daily routine. Some moms see their milk supply lessen at this time.
If you're pumping because you are going to be away from your baby, first, build up a supply of milk so baby will have enough for the number of feedings you'll miss, says Andi Silverman, author of Mama Knows Breast. Second, bring your pump with you when you're away from baby. Pump at the same times baby would be eating in order to maintain your milk supply.
The American Academy of Pediatrics recommends that moms give infants only breast milk for the first six months. That means no formula, water, juice or solid foods. The AAP also suggests that mothers breastfeed (in addition to feeding the baby solid foods) until baby is at least one year old. And many moms continue to breastfeed as their kids become toddlers. The World Health Organization recommends breastfeeding, in addition to solids, for two years.