Custom Post Type
Quick Definition
A Custom Post Type (CPT) lets you create new content types in WordPress beyond the default Posts and Pages — like portfolios, testimonials, events, or products.
What Is a Custom Post Type?
WordPress comes with 5 default content types: Post, Page, Attachment, Revision, and Navigation Menu Item. A CPT lets you create additional content types.
Common examples: Portfolio, Testimonials, Events, Products (WooCommerce), Recipes.
Custom Post Types in Practice
Register with register_post_type() in a plugin. Creates a new admin menu section, archive page, and individual pages. Many plugins (WooCommerce, Events Calendar) create CPTs automatically. Or use CPT UI plugin for a visual interface.
Why It Matters
CPTs transform WordPress from a blog into a full CMS. See our plugins guide and WooCommerce tutorial.