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

  1. dgitaly
    Posted 4 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


  2. The.MacGuffin
    Posted 4 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

  • WP User Frontend
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic