I’m trying to create shortcodes that will display both avatar and logged in user first name in a text widget. I have managed to create something that displays the avatar, but not the username.
My code is as follows:
Have in mind that this is not for an specific ID, this to show on screen which user is logged in.
By the way, is it possible to define the avatar’s size?
EDITED: Corrected a typo error in the code.