Groups File Access Documentation

Examples

Showing the link to a specific file

To show the link for the file whose ID is 2, embed the following shortcode on a page or post:

[groups_file_link file_id="2"]

The file IDs are shown on the Groups > Files admin section along with each file that has been uploaded from there.

Showing links to all files for registered users

File links can be listed by group. To conveniently provide download links for the registered users, embed the following shortcode on a page or post:

[groups_file_link group="Registered"]

Besides Registered, any name or ID of an existing group can be used.

Showing links to all files for users in a group

Assuming you have created a group named Premium, the list of links to all files assigned to that group is shown using the following shortcode embedded on a page or post:

[groups_file_link group="Premium"]

Using additional attributes

Additional attributes can be specified including attributes for the a tag.

For example, if you want to show the file descriptions along with their links:

[groups_file_link group="Premium" description="yes" class="file-link"]

If you want to apply the file-link class to the links, you can use:

[groups_file_link group="Premium" class="file-link"]

Example page for registered users

A downloads page that provides files to registered users can be built using Groups and Groups File Access shortcodes. Here is an example that will remind members to log in before they can access the files, or offer others to create a new account.

[groups_non_member group="Registered"]

<h2>Please log in</h2>

You must be a registered member to access the files available for download.

Please <a href="http://www.example.com/wp-login.php">log in</a> to access the files. If you are not a member yet, you can <a href="http://www.example.com/wp-login.php?action=register">register</a> a new account.

[/groups_non_member]

[groups_member group="Registered"]

<h2>Downloads:</h2>

[groups_file_link group="Registered" description="yes"]

[/groups_member]

Please follow the Support guidelines.

Premium Support is available for customers in the Forums.