WordPress.org

Ready to get started?Download WordPress

Forums

Simple Local Avatars
[resolved] Getting the Avatar URL for use in a post. (6 posts)

  1. kirkward
    Member
    Posted 1 year ago #

    I want to get the URL of the site admin avatar so it can be used in a post. I can get the admin user ID easily, but not sure how to get the URL for use as a thumbnail or featured image.

    Any suggestions?

    Thanks

    http://wordpress.org/extend/plugins/simple-local-avatars/

  2. Jake Goldman
    10up Engineer
    Plugin Author

    Posted 1 year ago #

    It works exactly like WordPress's native avatar feature (via Gravatar) works: you need to put a "get_avatar( USER_ID OR E-MAIL )" call in your template files.

    get_avatar

    This plug-in does not add any new features for embedding avatars in your content or anywhere else. It's purely a replacement for requiring Gravatar. If you're looking for a plug-in that makes it easy to embed an avatar in the editor, you might want to consider Gravatar Shortcode - it should be compatible.

  3. kirkward
    Member
    Posted 1 year ago #

    Thanks. I got it doing what I need with the get_avatar call, and have adjusted the size to give me what I wanted.

    I have to say, the get avatar thing is sort of confusing. I was also able to get the URL, with a regex statement, but found it wasn't necessary. I just the avatar as a picture or image.

  4. radianceLux
    Member
    Posted 12 months ago #

    Thanks. I got it doing what I need with the get_avatar call, and have adjusted the size to give me what I wanted.

    I have to say, the get avatar thing is sort of confusing. I was also able to get the URL, with a regex statement, but found it wasn't necessary. I just the avatar as a picture or image.

    I am currently trying to get just the URL for the avatar how did you do it?

  5. jakenmusic
    Member
    Posted 9 months ago #

    I am also looking to get a plain avatar url from the plugin. Can anyone shine some light on this?

  6. Pat Hawks
    Member
    Posted 7 months ago #

    I am also looking to get a plain avatar url from the plugin. Can anyone shine some light on this?

    Currently, there is no function to retrieve just a plain avatar url.
    A bug has been filed, and is currently waiting for review.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic