mbr_author
Usage
This shortcode returns the contents of the specified WordPress user field for the author of the current page/post.
Any field used within the WordPress user or user_meta table can be specified except for security purposes; user_login, user_pass, user_activation_key, WordPress capabilities and WordPress user level.
Parameters
Parameters | Description |
---|---|
field | Specifies the name of a WordPress user field to return. Some Permitted Values: first_name, last_name, display_name, nickname, nicename, user_nicename, email, user_email or URL, user_url. Default: none. Required: yes. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_author].
Nesting
Shortcode nesting within is NOT supported.
Examples
- Example 1
- Example 2
Returns the value of the WordPress user field named last_name:
[mbr_author field='last_name']
Returns the value of the WordPress user field named user_email:
[mbr_author field='email']
API
Note
There is currently no ActiveMember360 API function equivalent for this shortcode.