Lesson 7: Custom Post Types

Create your own content types in WordPress

What is a Custom Post Type (CPT)?

Custom Post Types allow you to add content types other than posts and pages, like portfolios, tutorials, or products.

Creating a CPT

Use the register_post_type() function in your theme’s functions.php file to create a CPT.

Examples of CPTs