Title: Custom Avatar
Last modified: August 21, 2016

---

# Custom Avatar

 *  Resolved [Greenweb](https://wordpress.org/support/users/greenweb/)
 * (@greenweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-avatar-5/)
 * Updated from pods.2.3.12 to 2.3.16
    The get_avatar function is not working correctly
   if the user has a custom avatar uploaded via the pods User avatar extension. 
   All avatars displayed defaults to the current user’s custom avatar.
 * Even if the WordPress function `get_avatar()` is called.
 * `<?php echo get_avatar( $id_or_email, $size, $default, $alt ); ?>`
 * No matter what `$id_or_email` is passed to `get_avatar()` pods returns the same
   avatar (the current users avatar).
 * [http://wordpress.org/plugins/pods/](http://wordpress.org/plugins/pods/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Greenweb](https://wordpress.org/support/users/greenweb/)
 * (@greenweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-avatar-5/#post-4286634)
 * Downgraded to pods.2.3.15 – and get_avatar() is working as it should
 *  Thread Starter [Greenweb](https://wordpress.org/support/users/greenweb/)
 * (@greenweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-avatar-5/#post-4286686)
 * Got the Avatars are working again!
    I updated the plugin to version 2.3.16 and
   in the class PodsMeta I reverted the following : File: /pods/classes/PodsMeta.
   php line 2476
 *     ```
       if ( !is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
       ```
   
 *  to :
 *     ```
       if ( !is_object( self::$current_field_pod ) || !is_object( self::$current_pod ) || self::$current_field_pod->pod != $object[ 'name' ] )
       ```
   
 * See an image of the DIFF here [https://pbs.twimg.com/media/BYQkrWkCAAA0Ldq.png:large](https://pbs.twimg.com/media/BYQkrWkCAAA0Ldq.png:large)
 *  Plugin Author [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * (@sc0ttkclark)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-avatar-5/#post-4286739)
 * Try the very latest 2.3.18 release and let me know if that resolves your issue.
 *  Thread Starter [Greenweb](https://wordpress.org/support/users/greenweb/)
 * (@greenweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-avatar-5/#post-4286745)
 * Thanks Scott – that sorted it out.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Avatar’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Greenweb](https://wordpress.org/support/users/greenweb/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/custom-avatar-5/#post-4286745)
 * Status: resolved