WordPress glossary

Custom Post Type

Custom post type refers to any post type that isn’t included as default in WordPress.

The default user-facing post types in WordPress are page, post and attachment. There are others, but they aren’t exposed to the user in the same way. Custom post types can be used for pretty much anything: recipes, reviews, products, orders, contact forms, terms in a glossary… Yes, this page is a post within a custom post type, called glossary-term.

Using a custom post type for the terms in this glossary keeps them separate from the blog posts and tutorials on this site, and gives me more control over how to structure them. Different post types can have different features, settings, permalink structures and taxonomies. They can also be displayed differently by the active theme.

Custom post types can be added by both themes and plugins, but it is considered best practice to add custom post types in plugins. This is to prevent you from losing access to your content when you switch themes.

In a block theme, you can give a custom post type templates of its own in the Site Editor, like single-product.html for a single product and archive-product.html for the list of products.

Published November 23, 2026

Related glossary terms