What’s the Best Way to Build Modular WordPress Themes ?
At fjorge, we version control our projects with git. The power that gives us to merge and manage code across teams of developers is an essential part of our workflow. As our team has grown and we’ve honed our processes, we’ve come up with some practices that help reduce merge conflicts as well as making our projects easier to maintain and extend. For WordPress projects, we’ve moved towards creating blocks that can be added to page templates instead of creating self-contained page templates. This makes page templates more flexible, makes future development easier and gives clients the ability to create pages from any combination of blocks.
For more info on ACF flexible content fields, read the documentation here. Since all good development requires good design, there’s a good overview of modular design presented in this article from A List Apart by Alla Kholmatova, “The Language of Modular Design”.