This document discusses custom post types in WordPress. It begins by explaining that custom post types have been available since WordPress version 3.0 in 2010. It then provides examples of common custom post types like products, orders, and courses. The document outlines how to create a custom post type using the register_post_type() function, passing a post type key and arguments. It recommends tools like GenerateWP and WP-CLI to generate the code and discusses templating custom post types.
8. Examples of
Custom Post
Types
I’ve used on
projects
Home Builder Site
• Communities
• Model Homes
Plumber
• Testimonials
• Staff Members
Restaurant
• Menu Items
Church
• Sermons
• Events
• Locations
11. Takes Two Parameters
A string for the Post Type Key
and an array of arguments
register_post_type()
12. Post Type Key is a String and must not
exceed 20 characters and may only
contain lowercase alphanumeric
characters, dashes, and underscores.
register_post_type()