Is there a short code for Avatar so that I can have someone's image appear in the Welcome Message in Theme settings. If not, what would be another way to achieve this?
Is there a short code for Avatar so that I can have someone's image appear in the Welcome Message in Theme settings. If not, what would be another way to achieve this?
Responses (2)
WPMU DEV Fanatic — 25th October 2011 #
Hi y3kgeek,
That would actually be more of a general WordPress question, a potentially very useful one I think. As such I went and threw together the following:
You can add that to your theme's functions.php file or better yet, wrap that with the plugin header code and make a plugin out of it.
You'd then use the shortcode [logged-in-user-avatar] where you like in your content.
The get_avatar() method has options associated with it, such as $size, which you'll find more details on at the following:
http://codex.wordpress.org/Function_Reference/get_avatar
Hope this helps!
-David
Member — 26th October 2011 #
You are pushing me to learn how to learn coding and theme design. And I'm not even at the "experienced" level yet! Perhaps it's time.
Become a member