Skip Navigation

[Resolved] Allow guest to publish but not read to custom post

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.

Author
Posts
#1118422

Dear Sir/Madam,

I create a custom post type "enquiry", I allow guest to submit an enquiry via the CRED form but I want editor or above level can read the post. How can I set the Access?

Best regards,

Kelvin.

#1118471

Dear Sir/Madam,

I configure the post access using "Managed by Access", I can add new enquiry by guest via CRED form, I disable the read access to all levels lower than Editor. Now I got 404 when viewing the custom post. How can I show login form and ask visitor to login instead of 404?

Best regards,

Kelvin.

#1118897

Laura
Supporter

Languages: English (English )

Hi,

near the “Read” column in Access there is a square icon: if you click on it you can customize what people who don’t have reading permission will visualize. You can choose to display a Content Template with a login form.

More information here: https://toolset.com/documentation/user-guides/setting-access-control/#choosing-what-to-display-when-read-access-is-denied
https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/restricting-read-access-specific-pages-posts-members/

Let me know if this helps you or if you need further assistance.

#1119185

Dear Laura Carletti,

It looks a bit complicated for me, I don't have content template with a login form, any simply way for me to create a login form to the content template? Once the visitor login with correct access right, will he/she be redirected back to the page that he/she cannot view the content?

Best regards,

Kelvin.

#1119741

Laura
Supporter

Languages: English (English )

Hi,

you can use the Views shortcode wpv-login-form to insert a WordPress login form in your content template. This shortcode also has an option for making you choose which page users will display after the login.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-login-form

See also our documentation on how to create Content Templates: https://toolset.com/documentation/user-guides/view-templates/

And this documentation on reading permission: https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/#choosing-what-to-display-for-people-without-read-permission

Let me know if this helps you or if you need further assistance.