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 the 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 friends list of another member or a specific user.

[ultimatemember_friends user_id="3263"]

Example - Display other member friends list in (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 lets you see which of your friends are currently online. It displays list of online friends. You need to install and activate the online users extension for this feature to work.

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 displays a list of members or users who have invited you or sent friend requests. 

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 show a list of members or users to whom you have sent friend requests.

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 or users, you have sent friend request to.

[ultimatemember_friend_reqs_sent]