I need to set up a many-to many relationship between a CPT (courses) and a Custom User Role (customer). I set up a CPT (customer) as you suggested in the link, but when I created my first Customer (under the Customer CPT) I didn't find any of my Custom Users in the Authors' list. Is this a permissions issue within Access?
From what you say here " didn't find any of my Custom Users in the Authors' list." I gather that your user's are not the ones creating their Customer profile correct?
The customer profiles are being created by the admin?
Unfortunately it depends on the level of the user role for the customer to show up under the author.
I think it would be best to have a simple user creation with just their username and password, then redirect them after the user has been created to then fill out their profile information.
This will ensure that the user is assigned as the author of that profile.
Thanks for your help so far, but I'm not sure I understand. Maybe I didn't explain myself correctly the first time round.
I want:
an admin to manually create users (customers). What I didn't mention was that I am also going to have instructors as well. I thought i could tackle that the same way I did for the customers.
those users (both customers and instructors) somehow need to have a relationship with a CPT (courses).
I want to have a 'profile' page for the users, where they can see the courses they have a relationship with.
If I need to create a CPT for the users, please explain how I can tie it together with the Custom User.
This is a different scenario but the principle is the same because you want the user to have a profile that is relatable to another CPT.
So what i'm talking about is instead of you having to manually create the Customer CPT profile based on the User Profiles. When a user signs up as a customer, you can redirect then to a Create Profile form which will allow them to add the additional information for their Customer CPT. This will automatically set them as the author of their own profiles.
From here you can relate the customer profile to the courses.