Chapter 7. Custom Post Types

This chapter ties together several of the core concepts from previous chapters, while investigating WordPress' capabilities as a CMS. It also covers a few extra tricks, including shortcodes, creating a link to your plugin's settings page, and how to clean up when someone uninstalls your plugin.

The task before us is to tap into WordPress' CMS abilities by using the register_post_type() function. Judging by the difficulties tracked in the SVN repository as WordPress 3.1 got ready for launch, it seems that we weren't the only ones who experienced difficulties in wrestling with WordPress' CMS capabilities.

A word of warning: this function is difficult to use and lacks good documentation, and exploring its full capabilities ...

Get WordPress 3 Plugin Development Essentials 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.