In a zombie setting the fact that agriculture takes up a lot of space could be really useful from a story-telling point of view. It provides a reason to expand past the walls of the settlement.
It’s weird because in these settings a successful settlement is usually portrayed as basically impossible for the zombies to break into. Then, somebody has to do something stupid to let them in. Movies where things fall apart despite nobody making an obviously stupid mistake are a lot more satisfying IMO.
You don't expand beyond the settlement - your fields are already there. You leave the settlement to tend the fields. You can't wall all the fields but you can wall the village.
expanding is done when the fields get too far to walk there and back in a day. Then you make a new village.
more likely you practice what birth control you can to limit population. Your other choice is go to war and kill some other village so your kids can move there. There was essentially no unclaimed land you could expand into.
Just like in I guess a large portion of human history after farming started. You abandoned the fields and retreated to the walled hilltop when the enemy came. Maybe that's what we have been genetically conditioned to expect and that's why we have these zombie films and series.