[wp-hackers] Seeking SQL advice to identify performance problem
mpwalsh8 at gmail.com
Fri Jun 22 19:36:30 UTC 2012
Yes I did and it worked as expected in one application I needed.
Next I wanted to use get_users() in conjunction with the WP_List_Table
class to present user data (including meta data) in a standard WordPress
style table with pagination. Based on my testing it appears that the way
the WP_List_Table class works with the offset and number settings to show a
subset of the users on each page the users aren't sorted correctly because
get_users() has a default ordering (or 3-4 other standard choices) that
results in the custom sort running on the wrong subset of the data based on
the paging and offset. I don't think I am explaining this correctly but
hopefully you get the idea. I was hoping I could pass my meta term to
get_users() as the order parameter but that doesn't seem possible.
On Fri, Jun 22, 2012 at 8:23 PM, Simon Blackbourn <piemanek at gmail.com>wrote:
> > I cannot order the results of get_users() on a user meta value. Am I
> > correct or as in the earlier case, am I missing something?
> did you put the usort and associated function in there? that works for me,
> on either first_name or last_name.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Mike Walsh - mpwalsh8 at gmail.com
More information about the wp-hackers