At present, there are two roles being used within my setup: Administrator and Contributor.
I have a view that shows the M2M relationship between a post type called Student and a post type called Route.
When logged in as an Administrator I am able to delete this relationship. But when logged in as a Contributor I am unable to delete the relationship. When I click the button nothing happens.
Here's the code from the View:
<td>[wpv-post-title]</td>
<td>[cred-delete-relationship role_items='$fromViews' relationship='route-and-student' redirect='self' type='button']Delete this route assignment[/cred-delete-relationship]</td>
Thank you for sharing the screenshots information.
Can you please go to:
=> Toolset => Access Control => Custom Roles
=> Click on the button "Enable Advanced Mode"
=> Go to "Contributor" role and click on the link "Change Permissions"
=> Within the "General Capabilities" activate manage_options Capability
Then check if Contributor user is able to delete the relationship on the frontend.
I don't want any user aside from myself to have access to wp-admin.
The built-in WordPress roles aren't an essentialrequirement for me - I'm presently only using them to restrict the visibility of content using conditional tags. Would it help to make the users into Editors, for example?
Ok - for that you can use the number of plugin to restrict the admin access based on role or you should add some custom code that suits best as per your need/requirement.