[groups_login] shortcode renders a login form.
This shortcode allows the use of the following attributes:
redirectdefaults to the current URL and will redirect to the given page after successful login.
"no"and if set to
"yes"will present a logout link in place of the login form when the user is logged in.
Let’s assume that you want to grant access only to members of the Advanced group.
- Create a page without restrictions as the main page for your members.
- Place these shortcodes:
Access is granted only to members of the Advanced group
Only logged in users, who are members of the Advanced group will be able to see links to Members page 1 and 2. These pages should also be restricted with the Advanced group’s capability (advanced).
Remember: Groups uses the user records that are available on your site, it doesn’t keep a different set of users.