Skip Navigation

[Resolved] Is it possible to limit read access to posts based on field or taxonomy

This support ticket is created 6 years, 4 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Shane 6 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1132667

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.

#1132929

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

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.

Please let me know a bit more details on this.

Thanks,
Shane

#1132953

Can you define a post group by taxonomy or field? I thought it was only manually assigning posts.

#1132962

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

Unfortunately no you cannot do it like this.

Is it that if you select a value on a post you want it to be automatically hidden ? I think I understand what you want exactly.

The best that can happen is that we use our conditional shortcode to hide the contents of the posts but not the post itself.

Please let me know if you want an example of this solution.

Thanks,
Shane

#1132974

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'.

#1132975

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

In this case no its not possible to do.

The post group is the only provision we have to do something like this.

Thanks,
Shane

#1133343

Hi Shane

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?

many thanks
Ian

#1133553

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ian,

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.

Thanks,
Shane