Skip Navigation

[Resolved] Restrict access to woner

This support ticket is created 4 years, 11 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
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)

This topic contains 4 replies, has 2 voices.

Last updated by O.M9311 4 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1400917

Tell us what you are trying to do?

I need a role where users access only their own posts.
I'm not talking about filtering. I'm talking about access.

In other words, why in Access Control is there Edit own, Edit any, Delete own, Delete any, but ... Read (all) only ?

Is there a simple solution, or a work arround, or an ideia on how to code it ?

A solution that even with a direct link to the CPT post, only the author can read this post.

#1401075

Hello, what you're describing sounds a lot like the private post feature in WordPress: https://wordpress.org/support/article/content-visibility/#private-content

If your site's content is created on the front-end with Forms, you can choose the "Private" status in the Form settings so that each post created by the Form is private for its author. Only the author and site administrators/editors will have access to see these posts on the front-end. Other site users will see a 404 error as though the URL doesn't exist.

If I've misunderstood the requirements, please let me know.

#1401805

Thank you for your answer.
I tested this solution yesterday already.
I wasn't able de display private CPT in the frontend with the author of private cpt connected. No items found.
I just tried again and got the same result, with toolset views and with other plugins (Elementor).
Any ideia ?

#1401811
#1401819

My issue is resolved now. Thank you!