Skip to main content

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

ParametersDescription
fieldSpecifies 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

Returns the value of the WordPress user field named last_name:

[mbr_author field='last_name']

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.