December 10, 2026
Content modeling, not custom post types
When a full CMS earns its place, when content collections in a static site are the better call, and how to actually decide
What the question used to be
A decade ago, if a WordPress site needed to manage something that wasn’t a
blog post or a page — products, staff profiles, case studies, event
listings — the answer was almost always the same: register a custom post
type, add custom fields (usually with Advanced Custom Fields), build
WP_Query filters to pull the right subset of content, and let WordPress’s
admin screens serve as the editing interface. That’s a real skill, and it’s
still relevant to anyone maintaining a WordPress site today. But the
question underneath it — how do you model a piece of content that doesn’t
fit the built-in shapes, and where does someone edit it — has a much wider
set of good answers now than it did then, and the interesting decision
isn’t “how do I build a custom post type,” it’s “do I need a CMS at all.”
What a CMS is actually for
A full content management system — WordPress, but also newer options like Sanity, Contentful, or a headless WordPress instance — earns its place when some or all of these are true:
- Non-technical people need to publish independently, on their own schedule, without a developer in the loop for routine content changes.
- Content changes more often than the code does — new products, ongoing blog posts, evolving marketing copy — such that redeploying the whole site for every content edit would be a bottleneck.
- The content has real editorial workflow needs — drafts, scheduled publishing, revision history, multiple contributors with different permissions.
- The relationships between content types are complex and change over time — a CMS’s admin UI and query layer are built for exactly this kind of ad hoc, evolving structure.
What a content collection in a static site is for
Astro’s content collections (and the equivalent in other static-site frameworks) are the better fit when the picture looks different:
- Content changes at roughly the same pace as the code, and a developer is already in the loop for most changes — a case study write-up, a new team member’s profile, a new service description.
- The content is structured and small in volume enough that a typed schema is more valuable than a flexible admin UI — a markdown file with frontmatter, validated against a schema at build time, catches a missing required field before it ever reaches production, which a freeform CMS admin screen won’t.
- You want the content in version control, reviewed the same way code is reviewed, with a diff that shows exactly what changed and who approved it — a meaningfully different workflow from a CMS’s database-backed revision history.
- There’s no requirement for non-technical publishing. If every content change already goes through a developer or through a pull request, the overhead of running and securing a CMS buys nothing.
This site is itself an example of the second case: articles, case studies,
service descriptions, and team profiles all live as markdown files
validated against a schema (see src/content.config.ts), built once and
served statically, with every content change reviewed as a pull request.
That’s the direct, current-day answer to the same underlying question the
original custom-post-type article was answering with WP_Query filters —
how do you give a piece of content its own shape and a queryable identity —
just solved by a different piece of infrastructure.
The schema is the actual design decision
Whichever direction you take, the real work is the same: deciding what fields a content type needs, which are required, and how instances relate to each other. A content collection schema makes this explicit and enforced at build time:
const articles = defineCollection({
loader: glob({ pattern: "**/*.md", base: "./src/content/articles" }),
schema: z.object({
title: z.string(),
description: z.string(),
date: z.coerce.date(),
tags: z.array(z.string()),
author: z.string(),
}),
});
A custom post type with ACF fields does the same conceptual job — define what a “case study” or a “product” is made of — but the validation happens at save time in the admin UI (or not at all, if a field was left optional and nobody enforced it), rather than at build time against a schema that fails loudly if a required field is missing. Neither approach is wrong; they trade a flexible, always-editable admin interface for compile-time guarantees and version-controlled review, and the right trade depends on who’s publishing and how often.
How to actually choose
The practical test: ask who edits this content, and how often, before picking the tool. A marketing team publishing several blog posts a week without engineering involved needs a real CMS — the operational cost of running one is worth it for the publishing independence it buys. A handful of case studies and team bios that a developer updates a few times a quarter, reviewed like code, don’t need a database and an admin panel at all — a typed content collection is less infrastructure, less to secure, and catches more mistakes before they ship. The mistake the original article’s world made by default — reaching for a CMS and a custom post type because that’s what was there — is worth naming directly: match the tool to how the content actually gets published, not to which one you already have running.
Originally published in 2015 and updated for 2026.
30 minutes with a senior engineer.
Tell us what you're building. You'll leave with an honest opinion, even if it's "you don't need us."
Reference calls with past clients are available under NDA during evaluation.