Groups’ shortcodes are used to limit content visibility, show group information, let a user join or leave a group, show user or site groups etc.
Don’t worry if you are not familiar with the usage of shortcodes, easy to follow examples are provided in each section to show you how to use them. Using shortcodes is not coding – to give you an idea of how super easy to use this is, the example below shows how you restrict content to be displayed for registered users only, anywhere on a page on your site:
[groups_member group="Registered"]Only registered members can see this.[/groups_member]
As in this example, many shortcodes require you to indicate a shortcode attribute. This is so that Groups knows how to act, based on hints about groups, capabilities or other information it requires along with the shortcode. Note that you pass information to these attributes enclosed within plain double quotes
The following sections provide details on the usage of the shortcodes included in Groups: