O'Reilly logo

WordPress 3 Plugin Development Essentials by Everett Griffiths, Brian Bondari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required