WordPress.org

Ready to get started?Download WordPress

Forums

Codepress Admin Columns
Can't sort user column (4 posts)

  1. deFUNKT
    Member
    Posted 1 year ago #

    I added two extra fields to user (http://pastebin.com/QqrV90CJ)

    I can add them as columns through the plugin. But when I want to sort them (I bought the addon), I get "No users found".

    The query string is wp-admin/users.php?orderby=registered&order=asc

    registered is the corredt meta field.

    Extra info: this is in a multisite installation.

    http://wordpress.org/extend/plugins/codepress-admin-columns/

  2. Tobias Schutter
    Member
    Plugin Author

    Posted 1 year ago #

    Your Column Heading is called 'registered', and internally this argument is reserved by the WP_User_Query. This conflicts with the sorting.

    A very simple solution would be to rename your column, for example: "User registered".

    This should fix it.

  3. deFUNKT
    Member
    Posted 1 year ago #

    Hi Tobias,

    I changed the field and header to defunktnu_registered, but that doesn't seem to change the situation.

    wp-admin/users.php?orderby=defunktnu_registered&order=desc

    doesn't return any users.

  4. Tobias Schutter
    Member
    Plugin Author

    Posted 1 year ago #

    This has to do with the multisite installation, I will look into this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic