Support » Plugin: WP User Frontend » [Plugin: WP User Frontend] A-Z Post Listing on Dashboard

Viewing 1 replies (of 1 total)
  • The.MacGuffin

    (@themacguffin)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP User Frontend] A-Z Post Listing on Dashboard’ is closed to new replies.