Ultimate Member - Shortcodes

Ultimate Member utilizes WordPress shortcodes to help users display forms in WordPress pages and posts. In this article, we outline the parameters and overview  for each UM extensions:


Social Activity

User Profile Wall

Used on the user profile page, the shortcode displays wall posts of the user.

Parameters ( attributes ):

  • user_id (integer) - show specific user wall posts by user ID.
  • hashtag (string) - show specific user wall posts by Hashtag.
  • wall_post (integer) - show specific post/activity
  • user_wall (bool) - show the form on the wall.
[ultimatemember_wall user_id=”123”  hashtag=”’#mypost” wall_post=”3”  user_wall=”true” ]

Activity

Used on Activity page, the shortcode lets a user see wall posts and activities of users.

Parameters ( attributes ):

  • user_id (integer)- show specific user wall posts by user ID.
  • hashtag (string) - show specific user wall posts by Hashtag.
  • user_wall (bool) - show the form on the wall.
  • wall_post (integer) -  show specific post/activity
  • template (string) - activity template name
  • mode (string)- mode name append in the element’s class
  • form_id ( string ) - form id append in the element id
[ultimatemember_activity user_id=”123”  hashtag=”#mypost” user_wall=”false” wall_post=”3”   template=”activity” mode=”activity” form_id=”um_activity_id” ]


Trending Hashtags

Shows the trending hashtags where the users used in their wall posts.

Parameters ( attributes ):

  • trending_days (integer) -  number of days the hashtags trend
  • number (string) - number of hashtags to trend in days
[ultimatemember_trending_hashtags trending_days=”7” number=”10” ]



Followers

List Followers

Shows the followers of a registered user

Parameters ( attributes ):

  • user_id (integer) -  show the followers of a specific user
  • style (string) - there are two style options:
    • avatars - show followers lists with avatars
    • default - show followers lists with avatars and follow bars
  • max (string) - number of  followers to display
[ultimatemember_followers user_id=”123” style=”default” max=”11” ]

List Following

Shows the people a registered users follow

Parameters ( attributes ):

  • user_id (integer) -  shows the people a specific user follow
  • style (string) - there are two style options:
    • avatars - show following lists with avatars
    • default - show following lists with avatars and follow bars
  • max (string) - number of  followers to display
[ultimatemember_following user_id=”123” style=”default” max=”11” ]

Follow Bars

Shows a follow bar with total number of followers and following of a specific user.

  Parameters ( attributes ):

  • user_id (integer) -  shows the people a specific user follow
[ultimatemember_followers_bar user_id=”123” ]


Messaging

Show Message Box

Used on a page to show the message box of a specific user.

Parameters ( attributes ):

user_id (integer) -  shows the message box to this user

[ultimatemember_messages user_id=”123” ]

Show Message Button

Used on a page, post, menu and widget with shortcode support to show the message button of a specific user.

Parameter ( attribute ):

user_id (integer) -  shows the message button of this user

[ultimatemember_message_button user_id=”123” ]

Show Message Count

Used on a page, post, menu and widget with shortcode support to show the total unread messages of a specific user.

 Parameters ( attributes ):

 user_id (integer) -  show the total unread messages of a specific user.

[ultimatemember_message_count user_id=”123” ]



Notices

Used on a page to show a specific notice.

Parameters ( attributes ):

  • id (integer)-  show the specific notice from post type ‘um_notice’.
    • Go to WP admin > Ultimate Member > Notices
[ultimatemember_notice id=”123” ]



Notifications

Show notifications

Used on a notification page. This notification shortcode will display notifications of a user.

[ultimatemember_notifications]

Show notification count

Used on a post/page, menu and widget with shortcode support. This shortcodes will display the total number of notifications of the current logged in user.

[ultimatemember_notification_count]



Online

Used on a page to show online users.

Parameters ( attributes ):

  • max (integer) -  maximum limit of the total online users to show
    • Default: 11
  • roles (string) -  filter the online users by roles.
    • Default: all
[ultimatemember_online max=”11” roles=”all” ]

Reviews

The reviews shortcode is used to display User ratings. It is the primary method used to display forms within your WordPress site.The reviews shortcode can be used anywhere within WordPress where shortcodes are supported. For most users, this will primarily be within the content of a WordPress post or page.

Parameters ( attributes ):

  • roles
    • The role of the rated users to be listed. (optional)
    • Default: member
  • number
    • Total number of users to be listed. (optional)
    • Default: 5

Display Top Rated Reviews:

[ultimatemember_top_rated roles=”member” number=”5” ]

Display Most Rated Reviews:

[ultimatemember_most_rated roles=”member” number=”5”]

Display Lowest Rated Reviews:

[ultimatemember_lowest_rated roles=”member” number=”5”]

Social Login

Show Social Login/Register buttons

Used on login/registration page. This shortcode will display social buttons to everyone.

Parameters ( attributes ):

  • id (integer) - the ID of a social login form in post type ‘um_social_login’.
    • Go to WP admin > Ultimate Member > Social Login
[ultimatemember_social_login id=”123” ]



User Tags

Display User Tags

Used on any pages. This shortcode will display the User Tags to everyone.

Parameters ( attributes ):

  • term_id (integer) - the parent term’s ID.
  • number (integer) - maximum number of terms to return.
  • orderby (string) -  order terms by
  • order (string) - whether to order terms in ascending or descending order. Accepts 'asc' (ascending) or 'desc' (descending). Default 'desc'.
[ultimatemember_tags term_id=”123” number=”1” orderby=”count” order=”desc” ]



Profile Completeness

  • Display Profile Completeness

Used on any pages and widget that has shortcode support. This shortcode will display the profile completeness of the current logged in user.

Parameters ( attributes ):

  • None.
[ultimatemember_profile_completeness]
  • Display Profile Progress Bar

Used on any pages and widget that has shortcode support. This shortcode will display the profile completeness  bar of the current logged in user or specific user.

Parameters ( attributes ):

  • user_id (integer) - Show to specifc user id.
    • Default: current logged in user
[ultimatemember_profile_progress_bar user_id=”123” ]