March 12, 2015 - How to, Shortcodes

Inserts the "'Website" link, as listed in the user's profile. This is most useful for linking to another user, such as a student's faculty advisor.

For example, in conjunction with the [user_meta] shortcode:

[user_meta]Your Faculty Advisor is:
 [profile_link user_id="{$faculty_advisor_id}"][/user_meta]

where "$faculty_advisor_id" is retrieved from the Student's meta data.

If the "user_id" is not specified, the current user's information is returned. If there is no web page specified in the users profile, the users name is returned in plain text.

Implemented in Shortcodes UI.

Comments are closed.