13. Custom Post Types

In This Chapter

Setting Up a Custom Post Type 196

Using Custom Taxonomies 200

Putting It All Together 204

Posts and pages are great, but if you need an advanced degree of customization over your data, custom post types and taxonomies are for you.

In this chapter, we’ll give you an overview of what custom post types can do and show you how to use them to set up a portfolio section for your site. We’ll also walk you through the process of setting up a custom taxonomy to organize your portfolio section by feature.

Custom post types and custom taxonomies require an advanced knowledge of PHP and a familiarity with the functions.php file as well as WordPress template files.

Setting Up a Custom Post Type

To use custom post types, ...

Get WordPress: Visual QuickStart Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.