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.

main menu page redirects to user ID

One solution would be to create a page with a page template that gets all info based on the user ID. Then you can add that page to the menu. Something like this: <?php /* * Template Name: User Info */ get_header(); //Your code for getting the users id $user_id = ‘123’; //Output userinfo using … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)