Add column and post filter for a custom post type field on the edit.php page

Question

I have a plugin that creates a custom post type that has a custom field generated with the plugin. The custom field is stored in the database as a meta key called status. The value of this meta key is either “open” or “closed”.

On the edit.php page that lists the posts, I’d like to display the contents of the status field in a column. I’d also like to add a filter that allows the admin to show the all the posts by default with the option to view only “open” and “closed” posts using the filter selector.

0
, StevieD 2 years 2019-10-28T19:49:09-05:00 0 Answers 90 views 0

Leave an answer

Browse
Browse