Skip Navigation

[Resolved] Content specific to each user

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by CraigS3893 4 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1523811

I'm developing a site for a client who needs two access roles; Trainers and Students. Each individual student needs to see only the coursework assigned to them by their trainer, and to be able to upload coursework once complete. I know the Access plugin can limit access by role, but not sure if there's a "Toolset only" solution for displaying user-specific content, or if I'll need to use another plugin?

#1524523

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

The way to do this would be for the students to visit a "My coursework" page which contains a View to display coursework and a Query Filter to limit the coursework posts returned to theirs.

What that filter is depends on how the work is assigned. I'm guessing the same coursework post can be assigned to multiple students? So the simplest solution of making the student the post author of the coursework post wouldn't be available, so you will likely need to use a custom field to store the user IDs which the Query Filter can compare to the currently logged-in user.

Or you might want to make a relationship between the coursework posts and the students to manage the connections, and use a post relationship filter.

You may find the membership tutorial helpful: https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/

Let me know if you get stuck on a particular part of the implementation.

#1525427

Thanks Nigel. I'll give that a go. Useful to know that it's possible using only Toolset as I like to keep plugin use to a minimum. Will no doubt be back for help in a few weeks!