Getting list of top 10 users and sort on last name
You are arranging the users within foreach block. Why don’t you arrange them first and then go with the loop for displaying info. If you do that, you will need only one query. Do this in this order- 1. Do the query with get_users. You can add an extra parameter who=author. This will force to … Read more