Social Activity Shortcodes

Overview

Ultimate Member offers shortcodes for enhancing social interaction and activity tracking on your WordPress site. The Social Activity Shortcodes provide flexible options for displaying user wall posts, site-wide activities, and trending hashtags. Let's explore each shortcode's key features and use cases.

Contents

Shortcodes

[ultimatemember_wall] #

The [ultimatemember_wall] shortcode is designed for the user profile page, exclusively showcasing a user's wall posts. It does not display single posts or hashtags directly. Instead, the hashtag link leads to the predefined Activity page. Additionally, the shortcode supports the display of the user's wall form.

Attributes

Key Type Description
user_id integer Displays the wall of the selected user.
Default: the requested profile ID on the User page or the current user ID on other pages.
loading string Specifies how the first page of the activity wall is loaded.
Options:
- async - initiating a separate AJAX request after the browser page has loaded.
- sync - loads it together with the browser page.
Default: async

Example - Sample usage

[ultimatemember_wall user_id="123" data-loading="async" ]

[ultimatemember_activity] #

The [ultimatemember_activity] shortcode offers a comprehensive view of site-wide activities. Users can filter by hashtag or a specific wall post. This shortcode is a predefined content of the Activity page on your site. It includes hashtags and, as a separate feature, internally utilizes the [ultimatemember_activity_single_post] shortcode callback via $_GET['wall_post'].

Attributes

Key Type Description
hashtag string Hashtag name with or without #. Allows filtering by the hashtag.
loading string Specifies how the first page of the activity wall is loaded.
Options:
- async - initiating a separate AJAX request after the browser page has loaded.
- sync - loads it together with the browser page.
Default: async
wall_post integer Activity post ID, optional.
Default: the wall_post URL parameter or empty.

Internal Attributes (primarily for backward compatibility)

Key Type Description
template string Template name. Defaults to activity
mode string Mode name append in the element’s class. Defaults to activity
form_id string Form id append in the element id. Defaults to um_activity_id

You can use the above attributes if you want to display the site's activity wall on the custom page or filter it by the hashtag.

Example - Site-wide activity.

[ultimatemember_activity /]

Example - Site-wide activity filtered by hashtag.

[ultimatemember_activity hashtag="#ultimatemmembertalks" ]

[ultimatemember_activity_single_post] #

The [ultimatemember_activity_single_post] shortcode is specifically for displaying a single wall post on a custom page.

Attributes

Key Type Description
wall_post integer Activity post ID. Required for displaying a single activity post on a custom page.

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

Attributes

Key Type Description
trending_days integer the number of days the hashtags trend
number integer number of hashtags to trend in days

Example - Sample usage

[ultimatemember_trending_hashtags trending_days="7" number="10" ]