Skip Navigation

[Gelöst] Restrict access based on custom post type and given taxonomy

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem: I would like to restrict access to certain posts based on the custom post type and a specific taxonomy term.

Solution: Access does not provide restrictions based on taxonomy terms assigned to posts. You can use Access to create Post Groups, and assign each post to one Post Group. Then you can manage access to Post Groups for an entire User role, or for individual Users. These Post Groups are not linked to taxonomy terms. The members of each Group, and the Posts that belong to the Group, must be managed manually in wp-admin.

Toolset also offers conditional HTML, which can be used to restrict access to certain content on the site. You can set up taxonomy-based conditionals to show and hide pieces of content on the site.

Relevant Documentation:
https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
https://toolset.com/documentation/user-guides/setting-access-control/
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

This support ticket is created vor 6 Jahren, 5 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Christian Cox vor 6 Jahren, 5 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#906241

Restrict acess based on custom post type and igiven taxonomy I will have site with different categories and i want user roles each with access to specific one category .how can i achieve it with access? If not which plugin can i use that will do it for me paid membership pro? is it working with tools? Maybe something else

#906396

Hi, Access does not provide restrictions based on taxonomy terms assigned to posts. You can use Access to create Post Groups, and assign each post to one Post Group. Then you can manage access to Post Groups for an entire User role, or for individual Users. These Post Groups are not linked to taxonomy terms. The members of each Group, and the Posts that belong to the Group, must be managed manually in wp-admin. More information about Post Groups and Access here: https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
https://toolset.com/documentation/user-guides/setting-access-control/

Toolset also offers conditional HTML, which can be used to restrict access to certain content on the site. You can set up taxonomy-based conditionals to show and hide pieces of content on the site. Here's some information about conditional HTML: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

Let me know if you have additional questions about how you can set this up in Toolset. Unfortunately I'm not sure if there are other plugins out there that can accomplish restrictions based on taxonomy terms.

#908724

i think i need taxonomy so which membership plugin works best with toolset?

#909077

I'm not sure if there are other plugins out there that can accomplish restrictions based on taxonomy terms, so I'm not able to offer very good advice. Here's a link to search the site and forums for any membership-related tickets:
https://toolset.com/?s=+membership&lang=en
You can see what other Users have accomplished or had problems with, and hopefully that will help you make the best decision for your site.