After a lot of guess work and research I’ve managed to come up with a simple solution.
function column_orderby( $vars ) {
$vars['orderby'] = 'date';
$vars['order'] = 'desc';
return $vars;
}
add_filter( 'request', 'column_orderby' );
This will sort all of the columns by ‘date’ as well as order them by ‘desc’!
Hope it helps anyone in the same situation as me 🙂
Related Posts:
- sortable custom column in media library
- Sortable admin columns, when data isn’t coming from post_meta
- Admin table list API?
- Adding custom columns to custom post types
- Sort admin menu items
- Custom column for changing post status via ajax
- Hide username from users list
- Woocommerce: Add column to ORDERS admin page with items purchased
- orderby:date not working
- lock meta box position on post edit screen for contributors
- sort tags by tag ID in admin panel
- Sort query_posts for Parent Pages to menue order or the count?
- Sorting custom post types in edit.php : Post disappear
- query_posts with sorting on a custom datestamp
- Can’t sort custom column on user.php by number / meta_value_num?
- Can I rename the wp-admin folder?
- How to restrict dashboard access to Admins only?
- How to remove screen options and help links in the admin area?
- I’m getting a 404 message when I try to access wpadmin
- wordpress wp-admin css not loading
- Check if user is admin by user ID
- Highlight custom widgets in the admin area?
- How do I find all admin users using phpmyadmin?
- wp-admin produces a 302 redirect to itself
- create users to site with specific language
- Restrict access to admin but allow admin_post hook
- How to set custom editor style when editing the homepage?
- How to disable or hide “collapse menu”
- Login to wp-admin “redirect_to” points to wrong URL after migration
- TinyMCE Autoresize
- WordPress wp-admin suddenly lost its style
- Create Read Only Admin
- After changing Site url to https, can’t access login page
- Add custom content in user-edit.php page
- How to use Yoast SEO backend in english even if WPLANG variable is not english?
- How can I add my script to admin using script-loader.php?
- How to add a column to the Trash page?
- Admin first hook that outputs HTML?
- To remove default dashboard items and add quick draft widget for custom post type
- Order posts using a custom array
- Why am I unable to login after converting to www?
- why my menu is not appearing on the admin panel
- Can’t access WordPress as an admin – but I can log in as a user!
- Ordering of gallery images without using shortcode in theme
- Combining sorted and random CPT
- How to create a WP Admin user in phpMyAdmin for WordPress 4.6
- How do I host WordPress on a hidden domain through a reverse proxy?
- Add javascript confirmation popup on “Move to Trash” link
- Users disappeared from wp-admin
- 404 error comes up when I go to wp-admin after first installation [closed]
- Is there a quick way to find out what posts haven’t been tagged?
- WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
- WordPress isn’t reflecting changes I make to a specific file via FTP [closed]
- What are the requirements to make the admin toolbar show up on the front end
- Sorry, you are not allowed to access this page
- Screen Options & Help Buttons not working when including Bootstrap Css
- Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?
- Custom taxonomy/category order
- edit.php alter links
- Cannot access WordPress login pages
- How to get Role Subscribe Users on Admin Menu only in Pages in WordPress
- Sorting a query Field by date
- wp e-commerce group product by category [closed]
- Order posts alphabetically: how to set order=asc in mysql query?
- Ajax solution similar to WP Categories functioning in Admin area
- Difference between admin and user admin
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Editing edit-tags.php page in wp-admin
- What is the correct way to get only display plugin for Administrator Only
- displaying an error before update_post_meta
- Browse Happy in 3.2
- Outputting something based on the presence of post variable in admin screens
- “Add New” button on custom post type grid
- CSS of the admin panel
- Dismiss Admin Pointer Temporarily
- WordPress admin right sidebar isn’t working
- WordPress menu to change page title
- Sort posts alphabetically by category/custom taxonomy, insert divider between different types
- wp-admin blocking causing http error on uploads
- Disable some features in Admin
- What hooks should you use to create a table only once?
- Redirect WordPress login for customers but not admin
- How to sort store location by specific category order in WP store locations
- WordPress sorting posts by date and title using a dropdown
- Unable to open specific posts on WP Dashboard [duplicate]
- How to list newly ftp added HTML webpage under Pages section of wp-admin?
- Hi everyone, I have Problem with using wp_die()
- WordPress wp-admin Page
- How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?
- how to set not to be logined in wp-admin except administrator?
- Disable flyout (popup) menus in backend
- WordPress, content editor default type
- Random HTTPs redirections at admin area in shared hosting
- WordPress Login for multiple sites
- display wordpress user who published a pending post of another user
- WordPress Admin panel issue
- Can’t toggle between Visual and Text or Screen Options
- Impossible User Registration
- Valid WordPress html elements
- Unable to access WordPress admin panel