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?

1 Answer
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

Leave a Reply

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