WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: User Community] Avatars in posts? (4 posts)

  1. bobbybaboon
    Member
    Posted 5 years ago #

    I couldnt find any way to use get_avatar() in posts just like its being used in User list.

    Im hoping to use avatars on each posts instead of names.

    It should be possible right?

  2. Txanny
    Member
    Posted 5 years ago #

    Yes, it is possible, as get_avatar is a WordPress function. This means that it is always available to you, doesn't mind if you have the plugin installed or not.

    You have to call the function with minimum two params, the first is the user ID or use eMail, tyhe second the avatar size. You can pass the author_id in the post. Don't forget to echo the value returned by the function.

  3. bobbybaboon
    Member
    Posted 5 years ago #

    Thanks alot. Im ridiculously stupid. Forgot to echo it all along.
    Thanks for a good plugin.

  4. Txanny
    Member
    Posted 5 years ago #

    Also from 0.8 you can set the user thumbnail from the plugin gallery. You can use the function aoc_get_user_image().

    Instructions about how to use the function are found in code (gallery.php)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags