Register a custom post type in WordPress the right way
WordPress ships with two built-in content types — posts and pages — that cover the standard blogging and static content use cases the platform was originally designed for. As WordPress evolved into a general-purpose content management system and application framework, developers began building sites that needed to manage fundamentally different types of structured content: real…