Skip to content

Instantly share code, notes, and snippets.

@alettieri
Created July 6, 2012 17:49
Show Gist options
  • Save alettieri/3061594 to your computer and use it in GitHub Desktop.
Save alettieri/3061594 to your computer and use it in GitHub Desktop.
Sortable WordPress Columns
//
// Make these columns sortable
//
function business_sortable_columns() {
return array(
'images' => 'images',
'title' => 'title',
"parking" => "parking"
);
}
add_filter( "manage_edit-business_sortable_columns", "business_sortable_columns" );
@ammist
Copy link

ammist commented Jul 6, 2012

This is great! Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment