-
Author
Tagged: username, shortcode, call username with shortcode
-
February 20, 2015 at 21:05 #46918
Norman
Participantis there a shortcode for the logged in user ?
i am working on some profile badges. user should be able to promote their buddypress profile outside of wordpress, therefore i have a short piece of code that
includes the user profile page link, and the username needs to be a the one that is currently logged inFebruary 20, 2015 at 23:21 #46929sharmstr
Moderatorhttps://codex.buddypress.org/developer/playing-with-the-users-id-in-different-contexts/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 20, 2015 at 23:23 #46930sharmstr
ModeratorSorry, wrong link https://codex.buddypress.org/developer/the-bp-global/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 21, 2015 at 16:20 #46977Norman
Participantafter trying some things I recommend this plugin:
https://wordpress.org/plugins/user-shortcodes/
after installing the plugin you can easily use
6 shortcodes:[currentuser_username]
Display the current user name
[currentuser_useremail]
Display the current user email
[currentuser_displayname]
Display the current user display name
[currentuser_firstname]
Display the current user first name
[currentuser_lastname]
Display the current user last name
[currentuser_id] -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.

