I believe the missing piece to your puzzle is one additional filter to perform the sort and return the sorted data. Try something like the following:
function sort_column_by_auction_1357( $vars ){
if ( isset( $vars["orderby"] ) && "auction" == $vars["orderby"] ) {
$vars = array_merge( $vars, array(
"orderby" => "auction"
) );
}
return $vars;
}
add_filter( "request", "sort_column_by_auction_1357" );
This worked for me. I added a sort by Last Modified to all of my custom post type views.
Related Posts:
- How do I set the default admin sort order for a custom post type to a custom column?
- Make custom column sortable
- Custom sortable columns ordered by meta-value?
- Column sorting with emtpy meta values
- How do I sort a custom post type admin column using two meta keys?
- Order a custom post type admin screen by a second custom post type title
- Make a custom column sortable by a value from a different custom post type
- Sorting custom post types in edit.php : Post disappear
- Adding ‘menu order’ column to custom post type admin screen
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Style custom columns in admin panels (especially to adjust column cell widths)
- Replacing the title in admin list table
- Using meta_query, how can i filter by a custom field and order by another one?
- group search results by post type?
- register_post_type sort order by title by default
- Drag n Drop Post Order for multiple Custom Post Types
- Sort custom post type list table by display name of a user id stored as post meta value
- Add “Last Edited by” column to custom post type list table
- How to order adjacent posts (prev / next) by custom field value?
- WordPress post sorting with AJAX
- Ordering posts by custom taxonomy in admin area
- Custom Post Type, WP_Query and ‘orderby’
- How to add custom columns to Custom Post Type admin screen
- Filter admin columns by custom post field value
- Sorting a query by custom field date
- Custom Taxonomy Template Post List with Sort Order
- Ordering Posts List By Taxonomy Terms?
- Number of pages – multiple (custom) post types
- manage posts custom column is not populating data from meta boxes
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- how to sort post in admin column by recently
- Custom Post type sort order not working in the admin area
- How to sort a table of custom posts by column containing custom field
- Custom admin columns for ALL custom post types
- order of date column in custom post type
- Add custom column to custom post type overview in backend
- custom sortable column
- Alphabetical sorting of custom post type – one letter per page
- sort events based on event date custom field
- How to Sort Custom Field Admin Column by Date
- How to Sort by Date When Using d-m-Y Format
- Custom Post Type, Two categories, Two columns with Pagination
- Replacing the title in admin list table
- Remove Post Page “View Post” Link
- How can I add columns to custom post tables
- Custom Post Types: Custom columns with Title submenu?
- Sort Posts Best Practice
- How to show custom (checkbox) field value in admin post list?
- Custom Post Type sorted by Title
- Adding menu_order to CPT admin page
- How to add new tab to admin list of posts and handle result list
- Custom post admin filtering by post meta (the date)
- Sort by two dates. Default entry date and custom field if present
- Admin Column Text Positioning
- Custom-post-type-archive: posts sorted/filtered by year?
- Add Post Url to Manage Edit Screen
- How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
- query_posts with a custom post type, a meta_query and sorting by post date?
- sort order for a custom post-type [closed]
- Sort admin area by custom Event Date field
- Problem adding column to WC Subscription [closed]
- Custom post type ‘orderby’ => ‘meta_value’ not working
- How to rank custom post type from score points
- Sorting multiple custom post types without a meta key/value pair by sort order
- Order By Post Type ThenBy Taxonomy
- Combining sorted and random CPT
- how to check if custom post type column already exists?
- Sorting custom post type columns with external data and without meta values
- Adding HTML tags or css classes to admin columns
- Default sort on admin columns with meta date hides draft posts with empty date value
- Categories sorting
- Wp_query: sort by PHP variable
- Crafting WP_Query array, sort by date
- Extending AZIndex plugin to use custom post types and custom taxonomies
- WP CPT Custom Sortable Column in Admin Dashboard Sort Order Random
- WP_Query order by custom field, then randomly order some of results
- How to show first name and last name in custom post type columns
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Custom post type, organized by categories
- WooCommerce sort products by the actual product width(not the shipping width)
- Sort and filter custom post type posts by custom taxonomy
- WordPress posts page for customer filtering and sorting along with category filter
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Sort entries by date mixing two post types
- WordPress make Grandparent and great grandparent filterable in custom columns
- How to sort posts in a custom post type by title in ascending order by default?
- 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
- sort post types by amount of views
- Custom post type sorting: alphabetical order
- Sort a custom post with ACF: Date Picker & Display Featured!
- Custom columns doesn’t appear in custom post type
- How can I use this code on a custom database table?
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- Problem with $post_id object’s property
- Pods CMS: How to add custom column to Adnvanced Content Type
- CPT Columns doesn’t show categories
- Custom Post Type page sorts differently on different environments
- Getting post attchment URL to populate a CPT Admin Page Column
- Sort custom post type by most current date picker
- Creating a “glossary” of WordPress posts of a specific post type