I'm looking to create a membership-only site which will serve to display logged-in users their company's stored documents.
- I have a custom post type named
Boxes
. - I have a custom taxonomy called
Company
(non-hierarchal in case that matters)
What I wish to accomplish, is to be able to create custom roles for users that will give them access to any items within the taxonomy associated with their role.
Essentially, Users with the role ACME Corp
would be allowed to access posts within the Boxes post type that have the taxonomy acme-corp
assigned to them. I mean on the front end. The Dashboard will be blocked for all except Admins.
Creating taxonomies and custom post types isn't a big deal, but I don't know where to begin when it comes to A) creating custom roles and B) to allow those roles to only access the specified taxonomy/taxonomies.
Note: I use ACF5 PRO quite a bit, so a solution that involves ACF5 PRO is acceptable.
Edit: Made the goal a bit clearer