Add Custom Columns To Post Type

Declaring a new admin column in our WordPress admin’s list pages is a common task. Fortunately, we can do it quickly.

To create new columns for a WP post type of custom post type, we need two filters:

One usual case is when we create a custom post type and add a custom taxonomy to it. Our taxonomy not appended to the admin columns automatically, so we need to declare it like the following:

Note if you register your post types in a plugin it is most likely that you have a switch to turn on this behavior.

Leave a Reply

Your email address will not be published. Required fields are marked *