How to show custom (checkbox) field value in admin post list?

I have a custom post type for products and a custom meta checkbox field for ‘Sold’. How can I show the Sold status in a column on the Products edit list and make it sortable (so it would sort all the sold items together) or filter them by the Sold status?

Related posts

Leave a Reply

1 comment

  1. i did something similar with some radio buttons and a special taxonomy. i worked almost exclusively from the following 2 tutorials:

    http://shibashake.com/wordpress-theme/expand-the-wordpress-quick-edit-menu
    http://scribu.net/wordpress/sortable-taxonomy-columns.html

    though i was working with a taxonomy, the scribu tutorial actually links to another scribu tutorial on sorting by meta, which is more in-line w/ the OP’s question:

    http://scribu.net/wordpress/custom-sortable-columns.html