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?
Leave a Reply
You must be logged in to post a comment.
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