Followers shortcodes

Overview

This document provides instructions on how to use shortcodes of the extension Followers.

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

Shortcodes

[ultimatemember_followers] #

This shortcode shows followers of the user.

Attributes

Key Type Default Description
user_id integer Current profile ID (on profile page)
or current user ID
or 0 (for guests)
The ID of the user. Should not be zero
style string default avatars - show lists with avatars
default - show lists with avatars and follow bars
max integer 0 Number of followers to display.
0 - show all followers

Example - Avatars style

[ultimatemember_followers user_id="123" style="avatars" max="11" ]

Example - Default style

[ultimatemember_followers user_id="123" style="default" max="11" ]

[ultimatemember_following] #

This shortcode shows members that the user follows.

Attributes

Key Type Default Description
user_id integer Current profile ID (on profile page)
or current user ID
or 0 (for guests)
The ID of the user. Should not be zero
style string default avatars - show lists with avatars
default - show lists with avatars and follow bars
max integer 0 Number of followers to display.
0 - show all followers

Example - Avatars style

[ultimatemember_following user_id="123" style="avatars" max="11" ]

[ultimatemember_followers_bar] #

This shortcode shows a follow bar with the total number of followers and following members of a specific user.

Attributes

Key Type Default Description
user_id integer Current profile ID (on profile page)
or current user ID
or 0 (for guests)
The ID of the user. Should not be zero

Example

[ultimatemember_followers_bar user_id="123" ]