Skip Navigation

[Resolved] Dynamic Post Groups based on field or taxonomy values

This support ticket is created 6 years, 2 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Beda 6 years, 1 month ago.

Assisted by: Beda.

Author
Posts
#1134049

Currently one can only have one level of secure access per post type unless posts are manually added to post groups.

We are using Toolset as a kind of user forum on one of our sites, where access is public, but only registered members can add content. We would like the option to add a 'private' field (custom field or taxonomy) where that content would only be available to registered members.

Currently the Access plugin has no way to do that. What would be great is to have dynamic post groups where one can set a criteria, like field value, or taxonomy value, to achieve that. This would be the same as query filters on Views - would you be able to implement this in Access?

many thanks, Ian

#1136685

Do I understand the request correctly when I assume you want to control content with Toolset Access dynamically, based on values of Fields, or Terms?

So that would mean, you have a page with Field A and Taxonomy B and want it added/controlled by Access (specific Rules) only if the Field A and Taxonomy B present specific values?

I think this could be possible with some custom code, however, it is as well a useful feature, currently lacking in Toolset, since you can only apply rules by Post Type, or single Posts, manually, but not dynamically.

If this is understood correctly I can file the request.

#1136694

Hi Beda

Yes, exactly.

In this case we are using Toolset to run a type of user forum. When users add content using a post form, I would like them to be able to tick 'private' and this will only allow logged in (approved) users to see the content.

By default Access only allows all or none of a post type to be visible, as you say, and I would thus like to hide only certain entries from non-registered viewers.

many thanks
Ian

#1136704

Great.

This is the request to upvote:
https://toolset.com/feature-request/allow-conditional-access-control-based-on-fields-or-taxonomies-values/
https://toolset.com/feature-request/?wpv_post_search=allow+conditional+access+control&wpv_sort_orderby=post_date&wpv_sort_order=asc&wpv_sort_orderby_as=string&wpv_view_count=686737

FYI, what you try to achieve is possible with Custom Code.
You can open a Ticket, asking for instructions on how to update the Access Settings for a single post with custom code.
You could, for example, assign a specific group based on what value in the field or taxonomy.

The request itself is filed and votable as shown above.

#1140228

Hi Beda

Do you have an example of the custom code you refer to above? Can I accomplish this without waiting for an update to Access?

many thanks
Ian

New threads created by Beda and linked to this one are listed below:

https://toolset.com/forums/topic/split-dynamic-post-groups-based-on-field-or-taxonomy-values/

#1141182

You can open a Ticket, asking for instructions on how to update the Access Settings for a single post with custom code.

We cannot handle this here because this is a feature request.
I now opened a ticket directly for you:
https://toolset.com/forums/topic/split-dynamic-post-groups-based-on-field-or-taxonomy-values/

#1141183

Closed.