The application of evolutionary theory to understanding the origins of our species' capacities for social learning has generated key insights into cultural evolution. By focusing on how our psychology has evolved to adaptively extract beliefs and practices by observing others, theorists have hypothesized how social learning can, over generations, give rise to culturally evolved adaptations. While much field research documents the subtle ways in which culturally transmitted beliefs and practices adapt people to their local environments, and much experimental work reveals the predicted patterns of social learning, little research connects real-world adaptive cultural traits to the patterns of transmission predicted by these theories. Addressing this gap, we show how food taboos for pregnant and lactating women in Fiji selectively target the most toxic marine species, effectively reducing a woman's chances of fish poisoning by 30 per cent during pregnancy and 60 per cent during breastfeeding. We further analyse how these taboos are transmitted, showing support for cultural evolutionary models that combine familial transmission with selective learning from locally prestigious individuals. In addition, we explore how particular aspects of human cognitive processes increase the frequency of some non-adaptive taboos. This case demonstrates how evolutionary theory can be deployed to explain both adaptive and non-adaptive behavioural patterns.