WordPress Custom Post Types: A Plain-English Guide for Businesses

A WordPress custom post type is a content type you define yourself, alongside the built-in posts and pages. Services, case studies, team members, properties, events and testimonials are all good candidates. Each gets its own admin menu, its own fields and its own layout. You can create one with a plugin in about ten minutes, or with a few lines of code if you want full control. Below, we explain when it’s worth doing, how to do it properly and what to watch for.

MB Web
web.michaelbell.co.uk
Build a WordPress Structure That Fits
MB Web designs and develops websites, helping businesses shape content around the way they work and what their customers need.

Explore MB Web

TL;DR

  • A custom post type is a separate content type with its own structure, built for content that doesn’t fit a blog post or a standard page.
  • Use one when you have a repeating set of items with the same layout, such as projects, staff, properties or services.
  • Create it with a plugin like Custom Post Type UI, or register it in code, but keep the registration in a plugin, not your theme, so your content survives a redesign.
  • Pair it with taxonomies (your own categories) and custom fields so visitors and search engines can sort and understand the content.
  • Display it with archive and single templates, either in the Site Editor or in theme files.

What a custom post type is, and how it differs from posts and pages

Out of the box, WordPress gives you two main content types. Posts are time-based: they appear in date order and suit news and blog articles. Pages are static and are not organised by date, so they suit things like your About and Contact pages. WordPress’s own documentation describes a custom post type as a way to create content beyond those two, with its own structure, fields and taxonomies.

Think of it as a filing cabinet drawer with its own labels. Instead of cramming 40 case studies into the blog, mixed up with news and opinion, you give them a drawer called “Projects”. Every project has the same set of boxes to fill in: client, sector, summary, results, images. Editors see a tidy “Projects” menu in the dashboard. Visitors see a consistent layout.

The practical differences:

PostsPagesCustom post type
Best forNews, articlesOne-off, static contentRepeating items with a shared structure
Ordered by dateYesNoYour choice
Own admin menuPart of the defaultPart of the defaultYes, named by you
Own fields and taxonomiesCategories and tagsLimitedFully custom
Own archive and templatesBlogNo archiveYes

When a business website needs one

WordPress’s learning resources say a custom post type is useful for content with a different format from a standard page or post, such as portfolios, team members, courses or recipes. That’s a good rule of thumb. Ask yourself three questions:

  1. Will there be more than a handful of these items, and will you keep adding them?
  2. Does every item share the same pieces of information?
  3. Would you want to list, filter or search them as a group?

If the answer to all three is yes, a custom post type will save you time and make the site easier to run. Some examples we see across the South East:

  • Electricians and trades: a “Services” type (rewiring, EV charger installation, fuse board upgrades) with a “Case studies” type for finished jobs, each tagged by town. That gives you tidy local pages without copying and pasting layouts.
  • Estate agents: a “Properties” type with fields for price, bedrooms, address and property type, plus a taxonomy for area. Our estate agent web design work leans on this approach.
  • Charities: “Events”, “Projects” and “Stories” as separate types, so the team can add each without touching the rest of the site.
  • Sports clubs: “Fixtures”, “Teams” and “Coaches”, each with their own archive.
  • Industrial and B2B firms: “Products” or “Capabilities”, with downloadable spec sheets attached as fields.

If you only have five services that rarely change, ordinary pages are fine. Not every site needs this. The point is to match the tool to the content.

Why not just use posts with categories?

It’s the shortcut most people try first. It works for a while, then the blog fills with things that aren’t blog posts. Your latest news feed starts showing a staff profile. Your RSS feed and search results get cluttered. Changing the layout for one category means writing exceptions.

A separate type keeps each kind of content out of the others’ way. You can give it its own URL structure, such as /projects/enplan rather than /2026/05/enplan, and its own template. Cleaner URLs and cleaner navigation are better for visitors, and they make it easier for search engines to see what each section of your site is about.

Creating a custom post type: plugin or code

There are two routes. Both do the same job: they tell WordPress that a new content type exists.

Option 1: a plugin

A plugin such as Custom Post Type UI gives you a form. You enter a name, choose which features it supports (title, editor, featured image, excerpt), pick an icon and save. No code is involved. WordPress’s own lesson on creating custom post types and taxonomies walks through this route, and it suits most small business sites.

Steps in outline:

  1. Install and activate the plugin from the Plugins screen.
  2. Add a new post type, giving it a short lowercase slug (for example, project) and a plural and singular label.
  3. Tick the supports you need, and set “Has archive” to true if you want a listing page.
  4. Save, then check that the new menu item appears in your dashboard.
  5. Add one test entry and view it on the front end.

Option 2: code

Developers register a type with the register_post_type function. A minimal example looks like this:

function mbweb_register_project_type() {
    register_post_type( 'project', array(
        'labels' => array(
            'name'          => 'Projects',
            'singular_name' => 'Project',
        ),
        'public'       => true,
        'has_archive'  => true,
        'show_in_rest' => true,
        'menu_icon'    => 'dashicons-portfolio',
        'supports'     => array( 'title', 'editor', 'thumbnail', 'excerpt' ),
        'rewrite'      => array( 'slug' => 'projects' ),
    ) );
}
add_action( 'init', 'mbweb_register_project_type' );

The show_in_rest line makes the type available in the block editor, which you almost always want. After adding a new type, visit Settings, then Permalinks, and click Save once to refresh the URL rules. That fixes the common “404 on my new post type” problem.

The one rule that matters: don’t put it in your theme

WordPress recommends putting the registration in a plugin rather than a theme, so the content remains portable when the theme changes. If it lives in the theme, changing the theme makes your projects or properties vanish from the dashboard. The content is still in the database, but you can’t reach it. A small site-specific plugin, or a plugin like Custom Post Type UI, avoids that.

Taxonomies: organising what you create

A taxonomy is a way of grouping content. Posts already use categories and tags. With custom types you can create your own. WordPress’s lesson gives the example of classifying climbing routes by custom taxonomies such as height or climb rating.

For a business, that might mean:

  • Properties grouped by area (Lewes, Brighton, Eastbourne) and property type.
  • Services grouped by customer type: domestic or commercial.
  • Case studies grouped by sector.
  • Events grouped by month or audience.

A taxonomy gives you automatic listing pages, such as all the case studies in one sector, and the filters visitors use to narrow down what they see. Decide your groupings before you add dozens of entries. Renaming 200 items later is tedious.

Adding fields: the details that make each entry useful

The default editor gives you a title, a body and a featured image. Most business content needs more structure than that. A property needs a price and bedroom count. A team member needs a job title and email address. Custom fields hold these details in separate boxes, so every entry is consistent.

Web Design Sussex | 1793692996689 Posts pages and custom post types compared 1

WordPress’s documentation on how content works with Secure Custom Fields shows how fields attach to post types and taxonomies, and you can set up types and fields through the admin interface without code. Keep fields to what you will actually display. Every box someone must fill in is a box that gets left empty on entry number 30.

Displaying your content on the website

Creating the type is half the job. Visitors need to see it. There are two main routes.

With a block theme and the Site Editor

Custom post type content can be shown on an archive page and styled using archive and single-item templates in the Site Editor. You can design a layout visually: a grid of cards for the archive, and a full layout for each individual entry.

Developers can also register default block templates for a type. That pre-fills the editor with a set arrangement of blocks every time someone adds a new entry, so each case study starts with the same headings and image slots. It is a quiet way to keep a site consistent when several people edit it.

With a classic theme

WordPress uses a template hierarchy. For custom types it looks first for a file named for your type, then falls back to generic ones. According to the theme developer handbook, single-{post_type}.php controls individual entries and archive-{post_type}.php controls the listing page. For a type called project, that means single-project.php and archive-project.php.

The same page notes that the is_post_type_archive function lets a template check whether the current view is the archive for a given type. That’s handy for tweaking a header or sidebar on listing pages only.

If neither file exists, WordPress falls back to the general single and archive templates, which is why a new type often looks plain at first. Don’t be alarmed. It just needs its own template.

Web Design Sussex | 1793692948061 With a classic theme 1

Good practice before you build

A few habits stop custom post types becoming a maintenance headache:

  • Plan on paper first. List the content types, the fields each needs and the groupings. Ten minutes here saves hours of rework.
  • Use short, lowercase slugs. Once chosen, they are awkward to change, because they affect your URLs and database.
  • Think about search. Give every type a sensible URL structure, unique titles and a short summary on each entry. Our SEO team checks that new content sections are crawlable and have clear internal links.
  • Keep editors in mind. Hide what they don’t need, and give fields clear labels.
  • Back up before big changes. Switching a post type on existing content, or changing slugs, is easier to reverse if you have a recent backup.
  • Keep things updated. Plugins that register types need to stay current, which is part of routine website maintenance.

Our view: structure first, plugins second

We build every site around the content it has to carry, not the other way round. When a client tells us they have 60 projects, a dozen services and a team of fifteen, that’s three custom post types waiting to happen.

The mistake we see most often is a site built on a generic template, where everything gets forced into pages and posts. It looks fine on launch day. A year later, nobody can find anything, the editors dread adding new entries and the search results are a muddle.

Our approach is custom design and development, not off-the-shelf templates. We start by listing what you publish and how people look for it, then design the structure and the layout together. The content types are registered in a plugin so they outlast any redesign, and the templates are built to suit your brand and your customers.

You don’t need to understand the code. You need a site where adding a new project takes five minutes and looks right every time. If you’re curious about how we’d structure yours, ask us. We’re happy to talk it through honestly, whether or not it leads to a project.

James Golding

How we can help

If you’d rather have the structure planned and built for you, that’s what we do. We design and develop WordPress sites from scratch around your content, with custom post types, taxonomies and fields where they earn their place. Start with our web design service, or look at how we approach website development for more complex sites.

We can also look after the site once it’s live. Our website hosting starts from £350 per year, with extra 10GB bolt-ons at £35 per year. If you’re not sure whether your site needs custom content types at all, get in touch and we’ll tell you straight. Let’s talk!

FAQ

Do I need a plugin to create a custom post type?

No. You can register one with a few lines of code using register_post_type, or use a plugin such as Custom Post Type UI if you’d rather not touch code. Either way, WordPress advises keeping the registration in a plugin rather than your theme, so your content stays available if you change theme.

What’s the difference between a custom post type and a category?

A category groups content that already exists, usually posts. A custom post type is a whole separate kind of content with its own menu, fields and templates. They work together: you might have a Projects type, with a taxonomy that sorts projects by sector.

Why does my new post type show a 404 error?

The usual cause is that WordPress hasn’t refreshed its URL rules. Go to Settings, then Permalinks, and click Save without changing anything. Also check that the type is set to be public and that its archive is switched on if you expect a listing page.

Will custom post types slow my website down?

The types themselves are lightweight. Speed is more often affected by large images, heavy plugins and poor hosting. A well-built set of templates and sensible image sizes keep listing pages quick, even with hundreds of entries.

Can I change the way a custom post type looks?

Yes. In a block theme, you edit the archive and single templates in the Site Editor. In a classic theme, you create files such as single-project.php and archive-project.php. Either way, the design is separate from the content, so you can refresh the look without re-entering anything.

Sources

Recommended