The filter name is slightly off – use manage_edit-st_kb_sortable_columns
. As for the actual sorting not working, you need implement the logic yourself:
function wpse_208315_sort_by_status( $query ) {
if ( $query->is_main_query() && $query->get( 'orderby' ) === 'statuses' ) {
$query->set( 'meta_key', 'status' /* Post meta field name of status */ );
$query->set( 'orderby', 'meta_value' );
}
}
add_action( 'pre_get_posts', 'wpse_208315_sort_by_status' );
Related Posts:
- visually sort ordering “custom post types” for end users
- Custom Table Column Sortable by Taxonomy Query
- How do I allow users to sort posts? [duplicate]
- Sorting results from JSON-API on custom fields
- Sort users in get_users() in custom order
- Sort by custom field value
- How to sort posts with the first 2 or 3 by latest, and the rest is random?
- Get “wp_get_nav_menu_items” to sort alphabetically [duplicate]
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- Adding Sorting to Website?
- Sorting by tag or category
- get_terms orderby name as numbers
- Creating a category page by alphabet
- Sorting get_post_ancestors array
- wordpress custom_meta ordering of timestamps
- Multi-level ordering in WordPress
- Help alphabetically sorting $terms from get terms(‘wpsc_product_category’
- Vertical alphabetically post columns
- Advanced custom fields sort repeater by date
- Displaying posts sorting by a custom criterion
- Sorting custom post type by usermeta
- Sort posts by meta key that is serialised with other meta keys
- orderby field – list of available options?
- User Query sort on custom field then name
- WP Query sort by meta value
- Best Practices for a Completely Customizable Homepage – without plugins
- Sorting posts by custom field value
- How do I create a sort capability by Title, Category, Author, Date?
- How to avoid duplicating same meta_value?
- Sorting/Filter posts from front-end in WordPress blog
- ‘sort_column’ => ‘menu_order’ not working
- Sort scheduled posts in ascending order by default
- How to sort by number
- sort items by randomness
- inner foreach loop sorting
- Sortby parameter to sort users
- Update meta_key value for a page
- Sort my event calendar by date
- Table Sorter sort by span title?
- make two custom columns sortables
- How to display remaining post ( in post__in ) if posts are less then post per page?
- ACF pro: Group teaser by datepicker year and display custom sub fields [closed]
- Sorting in WP_List_Table class
- Sort an array with an ACF meta key
- display wordpress user who published a pending post of another user
- Static front page and orderby
- Advanced sorting of content in wordpress [closed]
- Sort posts by first content letter
- Grouping posts starting with same letter
- Getshopped (WP-e-commerce): show all protucts on one admin page for drag-and-drop ordering [closed]
- List CPT by menu_order with children right after parent
- Multidimensional array sort?
- How can users sort multiple pages?
- How do i Sort my Posts
- How to resort my id in wordpress?
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Sort pages in loop by admin’s page attributes order field?
- Sorting: custom query with orderby meta_value_num THEN by title
- register_post_type sort order by title by default
- Random sort within an already sorted query
- Sort custom post type list table by display name of a user id stored as post meta value
- Setting Custom Sort Order of Posts within a Category
- Can I force a metabox to be in one column?
- How to sort terms with diacritical signs?
- Custom taxonomy list and sortby letter pagination problem
- Exclude posts with specific meta_value while sorting by a separate meta_value
- How to sort posts in admin by titles with dd.mm.yyyy format?
- How to add new tab to admin list of posts and handle result list
- WooCommerce product sorting VERY slow
- How to re-order pages en-masse
- Custom post type ‘orderby’ => ‘meta_value’ not working
- Sort the result of the main Query in shop page by a custom taxonomy
- WooCommerce sort products by the actual product width(not the shipping width)
- Frontend sorting
- Comments offset
- how can i change WP main archives loop to sort by name or title
- Function to alphabetically sort custom post types creating duplicates
- I would like my page editor to be sorted by date created, or updated, instead of in Alpha order, is this possible?
- Custom Post Type page sorts differently on different environments
- Woocommerce – Problem sorting and filtering products with different tax rates by price [closed]
- replace text in Sort Box
- How to rearrange a pool of posts joined using two queries?
- Listing the most popular 8 city (custom fields) as used in posts
- How to order posts by number of Vimeo Likes
- What’s an easy way of sorting custom post types manually?
- How sort products by calculate value? ( custom post meta, price, option)
- Orderby event date (if it exists) or post date (if it doesn’t) – how to reorder posts based on meta value OR date
- Order by value of Custom Field using url string
- Wp Query sort order from custom MetaBox
- Case insensitive ORDERBY in wpquery
- Combine WP_Query with array of custom data to single loop without breaking the pagination
- How to order posts by the user_login that corresponds to a meta_value (which is a user id)?
- query_posts with sorting on a custom datestamp
- list pages by custom_field?
- Simple Data Table Update and Page Integration
- Sorting posts by specific order
- Sorting not working with get_posts
- wordpress sorting using array merge by price in ascending order but price with 0 must be show last
- Sort by promo code used woocommerce admin panel [closed]
- Order by a meta field in query loop