Results 1 to 6 of 6

Thread: How to make user columns sortable

  1. #1
    Thread Starter
    manishkhullar's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    893
    Thanks
    19
    Thanked 15 Times in 14 Posts

    How to make user columns sortable

    There is a code in the admin.php file located in cp/includes/admin/ that creates new columns in users page like Last login, ad count etc.
    Also, there is a code that looks like it makes these columns sortable.
    PHP Code:
    /**
     * Registers columns as sortable on admin users page.
     *
     * @param array $columns
     *
     * @return array
     */
    function cp_users_column_sortable$columns ) {

        
    $columns['id'] = 'id';

        return 
    $columns;
    }
    add_filter'manage_users_sortable_columns''cp_users_column_sortable' ); 
    But if you see users section in wp admin, the following columns are not sortable - last login, listings, registered
    How can these columns be made sortable ?
    A perfect place to outsource your SEO requirements. Check SEO prices in Australia.

  2. #2
    Thread Starter
    manishkhullar's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    893
    Thanks
    19
    Thanked 15 Times in 14 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    A perfect place to outsource your SEO requirements. Check SEO prices in Australia.

  3. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,702
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  4. #4
    Thread Starter
    manishkhullar's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    893
    Thanks
    19
    Thanked 15 Times in 14 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    A perfect place to outsource your SEO requirements. Check SEO prices in Australia.

  5. #5
    Moderator ovidiubica's Avatar
    Join Date
    Mar 2011
    Posts
    5,749
    Thanks
    240
    Thanked 1,060 Times in 999 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    manishkhullar's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    893
    Thanks
    19
    Thanked 15 Times in 14 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    A perfect place to outsource your SEO requirements. Check SEO prices in Australia.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [MOD NEEDED] Increase clasipress website width and make homepage 4 columns
    By kajaja in forum ClassiPress General Discussion
    Replies: 6
    Last Post: September 18th, 2014, 01:13 AM
  2. Make front page show 2 or 3 columns
    By doyley in forum FlatPress
    Replies: 1
    Last Post: June 12th, 2014, 02:44 AM
  3. Replies: 4
    Last Post: May 1st, 2014, 01:11 PM
  4. How do I change the category layout from 2 columns to 3 columns?
    By loomis96 in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: September 22nd, 2012, 01:49 AM
  5. How to make user only see their own post?
    By khong in forum Help Using Vantage (Legacy)
    Replies: 2
    Last Post: June 12th, 2012, 10:50 AM