Download Concise, our LATEST Genesis Framework Child Theme. It's FREE

Download

How to Display User Meta Anywhere With Shortcodes

If you’re building a membership site, you probably want to create a personalized welcoming page or members page to logged in user by displaying user meta on it. Here’s an example:

Welcome {User’s First Name},

Thanks for registering on our site. Here’s your details:

Username: {User’s username}

First Name: {User’s first name}

Last Name: {User’s last name}

Your avatar: {User’s avatar}

Enter User Meta Shortcodes plugin.

Once you’ve installed and activated, there are lots of shortcodes that you can use to display user meta anywhere on your site. These are some of them:

[authorinfo field="avatar" size="50"] - Display user avatar with size of 60px.

[authorinfo field="first_name"] - Display user first name.

[authorinfo field="last_name"] - Display user last name.

For complete list of shortcodes available, please refer to the plugin’s page. The shortcodes are good to be used in any post and page. If you wish to use them in any text widget, please read our guideline on enabling shortcodes in text widget.

I found this plugin to be very handy as it gives you flexibility to display the user meta with the help of shortcodes, instead of having to create a custom file or building your own shortcodes.

Leave a Comment

*