[Resolved] Content restricted with Access still shows up in a view/archive
This support ticket is created 7 years, 1 month 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Restrict Content from a site so that only a specific user role can access it. I used Toolset's Access plugin to do this and while I cannot view the content while logged out, it still shows up in searches/views
Well if I wrapped the whole view in a conditional access shortcode, the whole view will only show up if you are that specific role. I need the view to be visible to all, but specific content that is for a specific role to only show if the person who is viewing the same view is logged in.
Does that make sense? Lets say I have a blog view and out of 100 blog posts, 10 posts are restricted unless you have a certain role. I dont want those 10 to show up in the blog view unless you are logged in as that specific role.
As of right now, those 10 show up in the view, but thanks to Access if I click on one, it gives me a 404. my goal is to get them to not show up at all. Your solution above sounds like you are trying to show/hide the whole view unless you are that specific role which is not what I need.
Well - I think you misunderstood the concept here.
You can use both [wpv-conditional] and [toolset_access] shortcode within the view's loop output editor. So, whatever information you are displaying from view's loop output editor (within the view's loop) that should be wrapped with [wpv-conditional] and [toolset_access] shortcode.