I have a cred form to submit content which is controlled by Access to only allow those with a custom role to submit.
I have a link to the form in the sidebar.
At the moment the link is not seen unless you are logged in as a breed note writer.
I want the link to be seen by everybody, but if they are not logged in as per the custom role (breed note writer) it takes them to a log in page, very much like the 'My Account' that woocommerce has.
So I read your post over again, so you want the link to be displayed to everyone correct but when they click the link, unless they are part of a certain roll then you want them to get redirected to the login page?
What if the user is already logged in but not a part of the roll.
So this wouldn't be possible with our access plugin.
Actually what happens is that that when a user doesn't have access to the page at all it doesn't show up for them.
So if its a link to that page it will be hidden. However you can manually link to the page yourself so it stays static and then adjust the permissions on the page so that if the user doesnt have permissions they are redirected.
Which brings us back to my original question - HOW?
You have given a screenshot but not told me where I find that!!!! It's not on the actual page, it's not on the cred form. I can't find it!
I added a link to the sidebar. It is now visible to all but when you click on it it takes you to the page but, apart from the title, it is blank. It does not go to a 404 error as you state.
Sorry for that, when you go to toolset -> Access Control -> Post Group there is a small icon beside the checkbox to give a role permissions to a group.
Click this icon and it will bring up the window to set the content template. See Screenshot.
Please let me know if you were able to find this.
Thanks,
Shane
When I did find this there was no edit icon beside the user group, but the group was checked. I unchecked it and the edit icon appeared. I edited it to go to a specific content template.
However, it is still not redirected and a non-registered visit still just gets taken to the Add Breed Notes page which is blank except for the title (as I stated above)