The Manage Posts screen can be changed to show extra columns, or remove unwanted columns in the listing.
Let's say that we want to show the post type—Normal, Photo
or Link
. Remember the custom field post-type
that we added to our posts? We can use it now to differentiate post types.
We want to add a new column to the Manage panel, and we will call it Type. The value of the column will represent the post type—Normal, Photo or Link.
Expand the
admin_menu()
function to load the function to handle Manage Page hooks:add_submenu_page('post-new.php', __('Add URL', $this->plugin_domain) , __('URL', $this->plugin_domain) , 1 , 'add-url', array(&$this, 'display_form') ); // handle Manage page hooks add_action('load-edit.php', array(&$this, 'handle_load_edit') ); }
Add the hooks to the columns on the Manage screen:
// Manage page hooks function handle_load_edit() { // handle Manage screen functions...