WordPress User fields
Last updated
Last updated
Fetch and display a WordPress user meta field for the user currently logged in. This shortcode, in essence, wraps around the WP PHP function .
Easy-to-use examples
Below are some examples of default WordPress user meta fields. However, plugins often add their own (e.g. ) this shortcode will allow you to fetch their fields too.
Shortcode Arguments
The shortcode supports the following arguments:
field
User meta field to display e.g. last_name
text
[sv slug="user-meta" field="last_name"]
message-not-found
Message to display if field is empty
Text
[sv slug="user-meta" field="last_name" message-not-found="Last name is missing"]