WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Filter users by role and add avatar (1 post)

  1. blubberella
    Member
    Posted 6 months 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!

    http://wordpress.org/plugins/json-api/

Reply

You must log in to post.

About this Plugin

About this Topic