• Resolved jim-de-groot

    (@jim-de-groot)


    Hi,

    i’ve searching on the forum for a way to check a user role or level, but i haven’t managed to find a solution for my problem yet.
    I want to have page with an overview of the blog’s authors, but I want to seperate them based on their role or level. So at the top of the page the authors with admin role, next comes the editors, and last the regular authors/bloggers.

    I’ve been trying to do it with if($curauth->user_level == x) but that wasn’t working. I think the user_level isn’t available in wp2.7.

    Can anyone please help me? Thanks!

Viewing 3 replies - 16 through 18 (of 18 total)
  • @jim de Groot

    your code there (so far) helped me more than you ever know. With the combination of the USER COMMUNITY plugin where I can create my own roles, I can now use this to separate out the roles on different pages (ie members / artists)…

    Amazing!! Thank you so much

    Fantastic Post!

    I know this is an old post but…

    @jim de Groot’s last code block is perfect for what I’m trying to do but I’d also like to display any posts by the filtered users as well. So, if a user has a specific custom role assigned, display his or her last X number of posts. I’ve done some digging but to no avail. I’m not great with php so any help would be appreciated.

    thanks, Shag

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘display info of user with certain role or level ini WP 2.7’ is closed to new replies.