Skip to main content

All Questions

Tagged with
17 votes
3 answers
26k views

Make custom column sortable

I have a added custom column to a custom post type, and it works fine. I just want it to sort the names by title, so I tried this, function sortable_custom_columns( $columns ) { $columns['...
thatryan's user avatar
  • 433
6 votes
3 answers
5k views

sortable custom column in media library

trying to make a custom column sortable in the media library. Found lots of examples for posts, and users but can't get them to work on the media library page. function wpse_hook_isv_columns() { ...
v3nt's user avatar
  • 1,689
5 votes
1 answer
3k views

Sortable admin columns, when data isn't coming from post_meta

I have a custom post type that uses a custom taxonomy. I'm imposing a limit of a single term to each post (using a custom meta box drop down on the edit post screen for the CPT). The term for the ...
Dave Romsey's user avatar
  • 17.8k