• Resolved bobbybaboon

    (@bobbybaboon)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter bobbybaboon

    (@bobbybaboon)

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

    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)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: User Community] Avatars in posts?’ is closed to new replies.