Title: Avatars within plugins
Last modified: August 20, 2016

---

# Avatars within plugins

 *  [sephers2](https://wordpress.org/support/users/sephers2/)
 * (@sephers2)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/avatars-within-plugins/)
 * Hi All,
    I have been developing a plugin for a bit now but have stumbled across
   issues with avatars. I started developing the plugin in place in index.php and
   used get_avatar($userID,”40″) just fine, however when I then turned all this 
   code into a plugin and place it inside my plugin directory etc, the get_avatar(
   $userID,”40″) now doesn’t return anything. I’m guessing that it needs some sort
   of global statement of some sort given that it’s moved into a function inside
   an directory that is not the base dir. Any help would be greatly appreciated,
   Cheers, Sephers.

The topic ‘Avatars within plugins’ is closed to new replies.

## Tags

 * [avatars](https://wordpress.org/support/topic-tag/avatars/)

 * 0 replies
 * 1 participant
 * Last reply from: [sephers2](https://wordpress.org/support/users/sephers2/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/avatars-within-plugins/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
