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?
- adding the category to the admin column for a custom post type?
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Change page title in admin area
- How to filter by post-format in admin?
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Securing wp-admin folder – Purpose? Importance?
- stop redirection on /wp-admin call to /wp-login
- Wp3.5 Media Gallery Edit modal: change captions to title
- Opening specific posts on WP takes lot of time and freezes the editor
- Is it possible to set a option, and then redirect to another page directly from a admin notice link?
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- ascending order custom post type
- How to load a CSS file into WordPress admin area using Child Theme? [closed]
- Getting “Cannot modify header information – headers already sent” error, but only on backend
- Cookie value cannot be read until I’ve logged into the WP admin
- How to inhibit dashboard and profile management access to normal users?
- What corrections does this code need?
- Admin Blank Page with Working Front-End After Updating to WordPress 4.6
- Distinguish profile user and admin user IDs / get ID of user being edited
- Moved wordpress from localhost to live and wp-admin shows white screen
- Auto create post title in admin
- Add Sortable Column For All Post Types
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- How to add wordpress blog to Windows 2008 R2 site
- WordPress disable ‘Install Themes’ tab
- Modify wp-admin page header ‘viewport’ meta data
- WordPress Admin Not Loading All Core Scripts
- The uploaded file exceeds!
- wp-admin – 404 after custom login form
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- Understanding the orderby in WP_Query?
- How to change user admin_color with WP CLI?
- How to apply a CSS file to my admin pages?
- How to create admin tabs [closed]
- WP Admin/ WP Login Redirect to themselves
- Unable to log in to localhost wp-admin page on XAMPP server
- Missing ‘Move to Trash’ option from bulk select box
- Trying to get custom js files in my admin header
- Can content be recovered in this situation?
- How to disable categories/most used in ‘add new post’?
- Why am I locked out of the system?
- how to customize the default #adminmenu in wp-admin
- Disable the “remember me” to wp-admin
- How to Restrict Access to all wp-admin pages for subscriber users
- Why is WordPress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?
- WordPress query reverse order
- Is there a filter to edit html of user-edit.php
- How do I change the hover (focus) color of admin bar from frontend?
- wp_get_update_data() function running on every admin request
- Run two wordpress on the same domain
- nothing comes up when i go to my website.com/wp-admin? Which files should I look for?
- WordPress multiple admin notices on post update/add
- Sub menu is not working properly
- Programmatically emulate viewing a post in wp-admin
- Do not load the site as soon as you enter the WordPress panel
- Slow WP loading due to persistent version check, how to disable?
- Can I manage the photos that are pulled from Instagram before they are uploaded?
- do_shortcode() within Admin Page
- Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”
- Locked out of WordPress after changing to HTTPS – Google Cloud VM
- How to make Media Library use HTTPS?
- How to remove Google fonts from wp-admin (Roboto) added by core
- Multiple sorting criteries (order by)
- Using Orderby and meta_value to order natural/alphanumerical
- Trying to login to my site redirects me to the first page
- Admin Login Checks
- Why might this disable other functionality?
- Search plugin form on “Add Plugin” page not working
- Managing advertising code snippets
- Getting 404s in wp-admin after logged in
- admin_url() do not retrieve the correct url in an subdirectory install
- Block tools menu in wp-admin?
- Order posts by ACF checkbox
- How to order posts by the user_login that corresponds to a meta_value (which is a user id)?
- is_admin() triggers error
- Modify admin panel tab position
- Simple Data Table Update and Page Integration
- not able to add thumbnail custom field in dropdown
- Sort by promo code used woocommerce admin panel [closed]
- No wp-admin, wp-config, or .htaccess folder/file
- Taking over a WordPress site
- wordpress admin is broken [closed]
- Custom order of CPT posts by title, in wp-admin area by default
- Cannot Access wp-admin
- new WP_Query with order args – no more distinction between categories