[wps-extended]
Purpose
Displays a profile extension.
Profile extensions are like custom fields for your user profiles. Set them up via the link on WPS Pro->Setup.
When creating a profile extension there are a number of options available via the profile extension add/edit screen.
Availability
Provided in the Extensions Plugin.
Customising
You can use the global shortcode settings via WPS Pro->Shortcodes in the admin dashboard, or add them to the shortcode as options.
Example
If the slug of your profile extension is “color”, you would use:
[wps-extended slug="color"]
A common profile extension is date of birth, so assuming you have created a “Date of Birth” extension, with a slug of “date-of-birth”, type date, you could use the following to display the date:
[wps-extended slug="date-of-birth"]
However, you can also use the age shortcode option to display their age in years, rather as just a date. The following will replace %d with the years value of the calculated date from today:
[wps-extended slug="date-of-birth" age="%d years old"]
Options
The following (which shows default values and an example of using the shortcode option) can be set via the admin dashboard (WPS Pro->Shortcodes) or added as options to the shortcode in your WordPress page, post or widget.
Text to show if no value set | (empty_text=””) | |
Show it empty | (show_if_empty=”1″) | |
Show label | (label_prefix=”0″) | |
Age format string | (age=””) |