Ordering dashboard post

This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 11 years ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
November 15, 2013 at 3:48 am 10083
Tareq Hasan Hi There! Everything is in the title.. Is there a way that we can order the post in the dashboard? Thx
November 15, 2013 at 12:56 pm 10096
Tareq Hasan Tareq Hasan

By what you want to order the posts? Date, post title or what?

November 15, 2013 at 6:22 pm 10102
Marie-Hélène Marie-Hélène

by slug if it’s possible 🙂

November 15, 2013 at 9:27 pm 10115
Tareq Hasan Tareq Hasan

Paste this code to your themes functions.php and it should order by name
[php]
function wpufe_dashboard_sort( $args ) {
$args[‘orderby’] = ‘name’;
$args[‘order’] = ‘ASC’;

return $args;
}

add_filter( ‘wpuf_dashboard_query’, ‘wpufe_dashboard_sort’ );
[/php]

Viewing 3 Posts - 1 through 3 (of 3 total)