Friends shortcodes
Overview
This document provides instructions on how to use shortcodes of the extension Friends.
Ultimate Member uses WordPress shortcodes to allow users to perform certain actions as well as display forms and templates. You may use shortcodes in the posts(page) content and text widgets.
Contents
[ultimatemember_friends] - Show friends list
[ultimatemember_friends_bar] - Show friends counter
[ultimatemember_friends_online] - Show friends, who are online
[ultimatemember_friend_reqs] - Show members, who invited this member to be a friend
[ultimatemember_friend_reqs_sent] - Show members, this member invited to be a friend
Shortcodes
[ultimatemember_friends] #
This shortcode shows friends list.
Attributes
Key | Type | Default | Description |
user_id | integer | Current profile ID (on profile page) or current user ID |
The user ID. |
style | string | default | avatars - show lists with avatars default - show lists with avatars and friend bars |
max | integer | 11 | Number of friends to display. 0 - show all friends |
Example - Display your friends.
[ultimatemember_friends]
Example - Display other member friends.
[ultimatemember_friends user_id="3263"]
Example - Display other member friends (avatars style)
[ultimatemember_friends user_id="3263" style="avatars"]
[ultimatemember_friends_bar] #
This shortcode shows friends counter.
Attributes
Key | Type | Default | Description |
user_id | integer | Current profile ID | The user ID. |
Example - Display friends counter.
[ultimatemember_friends_bar]
[ultimatemember_friends_online] #
This shortcode shows friends, who are online.
Attributes
Key | Type | Default | Description |
user_id | integer | Current profile ID (on profile page) or current user ID |
The user ID. |
style | string | default | avatars - show lists with avatars default - show lists with avatars and friend bars |
max | integer | 12 | Number of friends to display. 0 - show all friends |
Example - Display friends, who are online.
[ultimatemember_friends_online]
[ultimatemember_friend_reqs] #
This shortcode shows members, who invited you to be a friend.
Attributes
Key | Type | Default | Description |
user_id | integer | Current profile ID (on profile page) or current user ID |
The user ID. |
style | string | default | avatars - show lists with avatars default - show lists with avatars and member bars |
max | integer | 999 | Number of members to display. |
Example - Display members, who invited you to be a friend.
[ultimatemember_friend_reqs]
[ultimatemember_friend_reqs_sent] #
This shortcode shows members, you invited to be a friend.
Attributes
Key | Type | Default | Description |
user_id | integer | Current profile ID (on profile page) or current user ID |
The user ID. |
style | string | default | avatars - show lists with avatars default - show lists with avatars and member bars |
max | integer | 999 | Number of members to display. |
Example - Display members, invited by you to be a friend.
[ultimatemember_friend_reqs_sent]