Is it possible to use Access to limit read access to a post based on a custom field or taxonomy?
So, if I add a tick box field for 'private', can all posts with that box selected be hidden from public view? I guess what I'm looking for is dynamic creation of a post group dependent on a field value.
Or alternatively could this be accomplished by a taxonomy? Currently I only see the option to set levels of security for an entire post type or for fields within a post, but not to hide or show the post dependent on the value of a field or taxonomy.
Unfortunately not this is not possible with our Access plugins.
I'm not sure how this functions differently from the Post Group option that is currently offered by Access. With the Custom field or taxonomy, you're essentially grouping the posts.
This is exactly what the Post Group option offers with Access.
No I know how to do that. What I need is a way to hide certain posts from the public, and only show to registered users. We are using Types to run a kind of forum, and some posts need to be ticked 'private'.
Please could you escalate this to your development team and ask them if something like this is a possibility in the future?
I can imagine that I'm not alone in having a need for this. Any kind of forum using Toolset or any site which wants to restrict certain ranges of posts within a post type would require something like this.
I'd imagine a post group, similar to a view, with a query/selector based on a taxonomy value or field value would achieve this quite easily, wouldn't it?
The best way to do this is for you to open a feature request ticket.
What I advise is that you lay out in detail what you want to achieve.
Also for a view it is possible to filter out all the posts with a certain selected value, however this post is still accessible by the use of a direct link.