Last active
September 28, 2016 21:42
-
-
Save ingozoell/243fb7e94249c8b55a65957b1f68b943 to your computer and use it in GitHub Desktop.
WordPress: Sortable Columns (Backend)
http://www.elliotcondon.com/advanced-custom-fields-admin-custom-columns/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function iz_post_column_register_sortable( $columns ) | |
{ | |
$columns['author'] = 'author'; | |
$columns['categories'] = 'categories'; | |
$columns['tags'] = 'tags'; | |
return $columns; | |
} | |
add_filter("manage_edit-post_sortable_columns", "iz_post_column_register_sortable" ); | |
// add_filter("manage_edit-CPT_SLUG_sortable_columns", "iz_post_column_register_sortable" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment