Groups shortcodes

Overview

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

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_groups] - Show "Groups" page

[ultimatemember_my_groups] - Show current user groups

[ultimatemember_groups_profile_list] - Show profile user groups

[ultimatemember_group_single] - Show single group page

[ultimatemember_group_discussion_activity] - Show Discussion

[ultimatemember_group_discussion_wall] - Show Discussion Wall

[ultimatemember_group_invite_list] - Show group Invite List

[ultimatemember_group_members] - Show a list of the group members

[ultimatemember_group_new] - Show a form to create or edit group

[ultimatemember_group_comments] - Show a block, that contains posts with the latest comments

Shortcodes

[ultimatemember_groups] #

Usage: Show "Groups" page

Default attributes:

  • 'avatar_size' => 'default',
  • 'category'  => 0,
  • 'groups_per_page' => 10,
  • 'groups_per_page_mobile' => 10,
  • 'privacy' => 'all',
  • 'show_actions' => 1,
  • 'show_pagination' => 1,
  • 'show_search_form' => 1,
  • 'show_search_categories' => 1,
  • 'show_search_tags' => 1,
  • 'show_total_groups_count' => 1,
  • 'show_with_greater_than' => 0,
  • 'show_with_less_than' => 0,
  • 'sort' => 'newest_groups'
    Possible values: 'date_asc', 'date_desc', 'title_asc', 'title_desc', 'members_asc', 'members_desc', 'activity_asc', 'activity_desc'

Example:

[ultimatemember_groups]

[ultimatemember_my_groups] #

Usage: Show current user groups

Default attributes:

  • 'avatar_size' => 'default',
  • 'category' => 0,
  • 'groups_per_page' => 10,
  • 'groups_per_page_mobile' => 10,
  • 'own_groups' => 1,
  • 'privacy' => 'all',
  • 'show_actions' => 1,
  • 'show_pagination' => 1,
  • 'show_search_form' => 1,
  • 'show_search_categories' => 1,
  • 'show_search_tags' => 1,
  • 'show_total_groups_count' => 1,
  • 'show_with_greater_than' => 0,
  • 'show_with_less_than' => 0,
  • 'sort' => 'newest_groups'
    Possible values: 'date_asc', 'date_desc', 'title_asc', 'title_desc', 'members_asc', 'members_desc', 'activity_asc', 'activity_desc'
Example:
[ultimatemember_my_groups]

[ultimatemember_groups_profile_list] #

Usage: Show profile user groups

Default attributes:

  • 'avatar_size' => 'default',
  • 'category' => 0,
  • 'groups_per_page' => 10,
  • 'groups_per_page_mobile' => 10,
  • 'own_groups' => ''
  • 'privacy' => 'all',
  • 'show_actions' => 1,
  • 'show_pagination' => 1,
  • 'show_search_form' => 1,
  • 'show_search_categories' => 1,
  • 'show_search_tags' => 1,
  • 'show_total_groups_count' => 0,
  • 'show_with_greater_than' => 0,
  • 'show_with_less_than' => 0,
  • 'sort' => 'newest_groups'
    Possible values: 'date_asc', 'date_desc', 'title_asc', 'title_desc', 'members_asc', 'members_desc', 'activity_asc', 'activity_desc'
Example:
[ultimatemember_groups_profile_list]

[ultimatemember_group_single] #

Usage: Show single group page

Default attributes:

  • 'group_id' => {current_group_id OR 0},
  • 'show_actions' => 1
  • 'avatar_size' => ''

Example:

[ultimatemember_group_single group_id="309"]

[ultimatemember_group_discussion_activity] #

Usage: Show Discussion

Default attributes:

  • 'group_id' => {current_group_id OR 0},
  • 'user_id' => {current_user_id},
  • 'hashtag' => 'hashtag' request parameter or empty,
  • 'wall_post' =>  'group_post' request parameter or empty,
  • 'template' => 'activity',
  • 'mode' => 'activity',
  • 'form_id' => 'um_group_id',
  • 'user_wall' => 0

Example:

[ultimatemember_group_discussion_activity group_id="309"]

[ultimatemember_group_discussion_wall] #

Usage: Show Discussion Wall

Default attributes:

  • 'group_id' => {current_group_id OR 0},
  • 'user_id' => {current_user_id},
  • 'hashtag' => 'hashtag' request parameter or empty,
  • 'wall_post' =>  'group_post' request parameter or empty,
  • 'user_wall' => 1

Example:

[ultimatemember_group_discussion_wall group_id="309"]

[ultimatemember_group_invite_list] #

Usage: Show group Invite List

Default attributes:

  • 'group_id' => {current_group_id OR 0},
  • 'user_id' => {current_user_id}
  • Example:

    [ultimatemember_group_invite_list group_id="309"]
    

    [ultimatemember_group_members] #

    Usage: Show a list of the group members

    Default attributes:

    • 'group_id' => 0

    Example:

    [ultimatemember_group_members group_id="309"]
    

    [ultimatemember_group_new] #

    Usage: Show a form to create or edit group

    Default attributes:

    • 'group_id' => 0

    Example:

    [ultimatemember_group_new group_id="309"]
    

    [ultimatemember_group_comments] #

    Usage: Show a block that contains posts with the latest comments.

    Default attributes:

    • 'numberposts' => 5,
    • 'order' => 'DESC'
    • 'orderby' => '`c`.`comment_date`'

    Example:

    [ultimatemember_group_comments]