I’ve built a fair number of custom one page themes with multiple sections for private clients and wondered if anyone could share some insight on how they approach this type of theme. My two main weapons of choice are Roots and Advanced Custom Fields Pro.
In the past I’ve done it two ways:
- Use pages as each section with page order/presence managed via WordPress’s native menu management.
Pros: relatively easy to manage and flexible when clients need to add/remove/rearrange sections.
Cons: management isn’t as straightforward with non-savvy clients who need to flip between pages and menu management; the need to redirect pages so they’re not visible individually.
- Create one page with Advanced Custom Fields tabs for each section.
Pros: This is semantic zen because everything that appears on the home page can be managed on the home page.
Cons: Memory issues or slow admin load times if there are too many fields/options; still leaves section order management up in the air; and clients can’t easily create/delete sections.
I’m now considering two additional approaches which I would love feedback on:
- Set the home page to the
page_for_postsand use a non-public CPT (“Sections”) as its posts. The CPT would likely be hierarchical each section type would need its own template.
- Use Advanced Custom Fields Options Pages and create a subpage for each section. This is certainly pretty and gives quick access to each section’s edit screen in an admin flyout menu, but it’s a significant break from the typical data hierarchy WordPress encourages. It also doesn’t require any redirects.
Thoughts on any of the above?