This shortcode will display the user’s display name, as set on the Edit Profile page.


Provided in the Core Plugin.


You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.


To use the shortcode options, include them in your shortcode as in the following example:

[wps-display-name link="1"]

The above will show the display name, but it will also be a link to the profile page. If being used on a profile page, you are unlikely to set link to be “1”, but there may be other situations when it is required.

The options can be combined too, for example, the following will show the display name for user 99, and as a link to their profile page:

[wps-display-name user_id="99" link="1"]


The following options can be added to the shortcode.

User   (user_id=””)
Which user to display. Can also set to a user ID via the shortcode itself.
Name links to profile page   (link=”0″)
Should the name link to the profile page?
Show first name/last name instead of display name   (firstlast=”1″)
Show first name and last name, useful if sorting by last name. Consider if people are actually filling these in though on your site.