User rank in wordpress post

There is various approach you could take. All you need to do essentially is to get the author’s role and put it in a statement of sort. For example, let’s get the author role first by: // inside the loop $author_role = get_the_author_meta(‘roles’, $post->post_author); Then just use do a if statement like: if ($author_role == … Read more

User list order by user meta

The QA that you have linked to is related but not needed here. meta_value_num is still not part of the user_query core and so, your meta_value_num parameter has no effect on the query. Just use meta_value as described on codex and you’ll get what you want.