Home Forums Plugin Support WP User Frontend Pro Ordering dashboard post

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10083

    Marie-Hélène
    Participant
    Post count: 15

    Hi There!
    Everything is in the title..
    Is there a way that we can order the post in the dashboard?
    Thx

    #10096

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #10102

    Marie-Hélène
    Participant
    Post count: 15

    by slug if it's possible 🙂

    #10115

    Tareq Hasan
    Keymaster
    Post count: 2831

    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 4 posts - 1 through 4 (of 4 total)

The topic ‘Ordering dashboard post’ is closed to new replies.