Introducing custom post types
While building some of the sites described in the current and the previous chapters, you may stumble upon what's called custom post types. Or you may even decide to create them yourself for the purpose of your individual projects. But let's take it from the top. The most commonly known types of content in WordPress are posts and pages. However, if we feel that the situation/project calls for it, we can create any number of new post types by taking advantage of the custom post type functionality and its wide versatility.
The need for custom post types can appear in many scenarios. For instance, when a writer is building a personal portfolio site, they might need a custom post type named book to present their publications ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access