Plugin Directory

Test out the new Plugin Directory and let us know what you think.

BP XProfile Shortcode

Adds Shortcode for BuddyPress XProfile data

Adds Shortcode for BuddyPress XProfile data

For quick reference, here is a list of example shortcodes:

Reference field by ID in case name changes: [xprofile field=12]

Output city using default user detection (currently displayed BP profile, fallback to author of current page/post, fallback to currently logged in user): [xprofile field="City"]

Output city for a specific user by ID or username: [xprofile field="City" user=20] [xprofile field="City" user="someusername"]

Override the default user detection by specifying method: Output city for the currently logged in user (blank if no user is logged in): [xprofile field="City" user=current]

Output city for the author of the current page/post being viewed: [xprofile field="City" user=author]

Output city for the currently displayed BuddyPress profile: [xprofile field="City" user=displayed]

Learn more about BP XProfile Shortcode

Requires: 3.5 or higher
Compatible up to: 3.9.16
Last Updated: 2 years ago
Active Installs: 200+


3.2 out of 5 stars


0 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.