Skip to content

Sortable columns

Choose a tag to compare

@jarednova jarednova released this 27 Feb 14:18
· 20 commits to master since this release

You can now sort columns based on custom field data...

So here's the catch: WordPress can only sort on things accessible to WP_Query (like a meta key). BUT if you're sorting on a meta key, awesome! just add this code..

Jigsaw::sort_column($post_types, $label, $meta_key, $numeric);

For example...

Jigsaw::sort_column('book', 'ISBN', 'isbn', true);
Jigsaw::sort_column('post', 'Location', 'location_name');