WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
A-Z Post Listing on Dashboard (2 posts)

  1. dgitaly
    Member
    Posted 2 years ago #

    Ciao from Italy,

    is it possibile to list in alphabetical order the posts on the dashboard page?

    Guess should add query_posts() code in wpuf-dashboard.php...

    Thanks for helping

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. The.MacGuffin
    Member
    Posted 2 years ago #

    You probably sorted it by now but this is how I got the list sorted A-Z. In wpuf-dashboard.php search for the comment //get the posts then edit the code after so it looks like this.

    $sql = "SELECT ID, post_title, post_name, post_status, post_date "
    . "FROM $wpdb->posts "
    . "WHERE post_author = $userdata->ID AND post_type = 'post' "
    . "AND (post_status = 'publish' OR post_status = 'pending' OR post_status = 'draft') "
    . "ORDER BY post_title ASC";

    The ORDER BY statement controls the sort order.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic