A diet rich in fruit and vegetables may reduce the risk of chronic diseases. However, in many countries the majority of children do not eat the recommended quantities of fruits and vegetables. This study aimed to understand associations between feeding practices in infancy (breastfeeding and first complementary food) and fruit and vegetable consumption in childhood (frequency and variety). Data were from the national, observational, cross-sectional Mothers and their Children’s Health study conducted in 2016/17, a sub-study of the national Australian Longitudinal Study on Women’s Health. Mothers completed a written survey on feeding practices in infancy (breastfeeding duration, use of formula, first complementary food) and children’s fruit and vegetable frequency (number of times eaten) and variety (number of different types eaten) in the past 24 hours, using the Children’s Dietary Questionnaire. Children (N = 4981, M = 7.36 years, SD = 2.90 years) ate vegetables 2.10 times (SD = 1.11) and fruits 2.35 times (SD = 1.14), and ate 3.21 different vegetables (SD = 1.35) and 2.40 different fruits (SD = 1.18), on average. Compared to breastfeeding for < 6 months, breastfeeding for ≥ 6 months was associated with higher vegetable variety. Compared to cereal as the first complementary food, fruit or vegetables were associated with higher vegetable frequency and variety, and higher fruit frequency. Overall, infancy is a window of opportunity for dietary intervention. Guidance to parents should encourage the use of fruits and vegetables at the beginning of complementary feeding.