Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
I want to display the user picture on main menu once he is logged (similar to Pinterest). What shortcode should I use or how can I display it?
Thanks.
Are you using a specific login/logout plugin to achieve that or no?
I do not think that the UserPro has a shortcode for what you are trying to accomplish,
I haven’t seen one yet on here, but I would like that feature for my website as well 🙂
However, I found this plugin: http://codecanyon.net/item/ajax-loginregistration-bar-wordpress/3675923
and if you click on comments, someone asked if the user’s profile picture can be displayed and the
author said that it is achievable.
Try this:
<?php if ( is_user_logged_in() ) { ?>
<?php echo ($current_user->profilepicture) ?>
<?php } ?>
This, when user is logged in, show avatar url. So you can use it in image src or other.
@moschino95 Yes I am using MegaMenu plugin.
@Tosiu Marian : Thank you. I will give it a try. Where should I use this code? I am using MegaMenu plugin
You must be logged in to reply to this topic.