Displaying additional columns in the custom post list page
After customizing the post editor to give content creators a tailored environment to create and edit custom post type entries, this recipe turns its efforts toward the Book Reviews management page, where all the entries for this type are listed. By default, custom post type listings are quite simple and only show the title, publication date, and the number of comments for each item. To make it easier to identify and sort data in this management page, WordPress offers a number of customization capabilities, starting with the ability to change the columns that are displayed.
You should have already followed the Hiding the category editor from the custom post type editor recipe to have a starting point for this recipe, and the resulting plugin should still be active on your development site. Alternatively, you can get the resulting code (
ch4/ch4-book-reviews/ch4-book-reviews-v8.php) from the book's GitHub...