O'Reilly logo

WordPress Plugin Development Cookbook by Yannick Lefebvre

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

Adding a new section to the custom post type editor

While the custom post editor that has been put in place so far is functional, it is not the friendliest of user interfaces, especially with the custom fields section where users need to type or select the names of each field as they create new items. A cleaner approach is to create a custom interface using the meta box mechanism that we saw in the previous chapter to display all data associated with Book Reviews.

This recipe shows how to create a meta box that will be associated with a custom post type and how to save the information that is entered in that new interface.

Getting ready

You should have already followed the Creating a custom post type recipe to have a starting point for this recipe. ...

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