Filter users by role and add avatar (1 post)

  1. blubberella
    Posted 1 year ago #

    Hey everyone!
    I have a magazine page and I want to display the editors who are actively publishing articles.
    The core get_author_index already does a great job, but I two little things are missing.
    get_author_index also gets the users that created pages (the developers and not the actual authors). How could I filter by either user role (eg only 'editors' or everyone except 'administrators') or users that only publish posts and not pages?

    The other thing is that I want to also get the avatar. There is the get_avatar() function (http://codex.wordpress.org/Function_Reference/get_avatar) but how can I use it in the api?

    Thanks in advance!


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic