[Resolved] Create membership type site where a member should be assigned to a group
This thread is resolved. Here is a description of the problem and solution.
Problem:
I'm trying/wondering if it's possible with toolset to create a membership type site where a member will be added to a specific "group" upon registration (can be done manually if necessary)...and that group can view that group's single page only
I'm trying/wondering if it's possible with toolset to create a membership type site where a member will be added to a specific "group" upon registration (can be done manually if necessary)...and that group can view that group's single page only (which will house specific content for that group only). There will be many groups and each group will have multiple members. And each group will have a single page which can only be viewed by the group's members.
Is there any documentation that you are following?
Not at this point. I'm in discovery phase now.
Is there a similar example that we can see?
No, this will be a unique webapp.
What is the link to your site?
The site is only on my local machine at this point.
Although I appreciate your response, it doesn't answer my question. I know of discover wp and it's reference sites. My question was about a membership type site where a user is assigned to a group. And that group of members are the only ones that can see a specific page (other members of other groups could not).
e.g.
- the site has a group called Charlotte Cycling and another group called Charlotte Moms
- the Charlotte Cycling group has 6 members (users) assigned to the group currently and the Charlotte Moms group has 14 members (users) assigned to it
- I go to the Charlotte Cycling page of the site and there's a message saying something like "you need to be a member of this group to view this page" with a "sign in" button below it
- I use the sign in button successfully and am redirected back to that page which I can now view the contents of
- If a member (user) of the Charlotte Moms group goes to the Charlotte Cycling page they'll see the same message, only when that user signs in from the Charlotte Cycling page they will be shown the same message like "you need to be a member of this group to view this page.
So, even though both users are registered on the site, they can only see the page that they are a member of "Charlotte Cycling" or Charlotte Moms.
In my opinion, you can try these:
1) Create custom user roles, for example:
- Charlotte Cycling
- Charlotte Moms
2) Create a custom post type, for example "group-cpt"
3) Add "group-cpt" posts, setup the read access for each "group-cpt" post to different user role, so different user role can only see their own "group-cpt" post.
Thanks for the feedback Luo! I'll play with those options to see if any of them fit my goals. I was trying to not add hundreds of CPT's as I'm not sure how that would affect the speed of the site, but I have to do what I have to do.