I am trying to: Restrict access to a custom post type "community calls." I've added this post type to Access and have turned off Read Access to Guests.
Link to a page where the issue can be seen: hidden link
I expected to see: You should not be able to view this page and there should be a login form.
Instead, I got: Both the post content and login form are visible. This does not happen with other post types such as: hidden link
Hello and thank you for contacting the Toolset support.
From what I can see so far, you are using Elementor Pro for the custom post template, right? Or are you using a Toolset content template?
I think that I'll need to take a closer look at your setup before telling more. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Thank you for the credentials. I logged in in your website successfully.
The difference between Alumni and Community calls is the page builder. The Alumni are using a Toolset Layout for displaying the post, and Community calls are using an Elementor Pro Single Post template.
I would like to take a copy of your website for further debugging. Can you install the Duplicator plugin and take a copy? I'll download it later.
Hello and my apologies for the late reply. I had to wait for a new Elementor Pro license to check if this error is reproducible on a clean install. I was not able to reproduce it with minimal setup(without layouts(for 404 page)). I will try that too later.
I built a local copy from your website and I am having different results right now. When I visit /community-call/reshaping-the-workforce-busting-bureaucracy/ locally it redirects me to the root page (/).
The issue needs more debugging. And I'll get back to you as soon as possible.
I was not able to reproduce the issue on my clean install for layouts. Then I built another copy locally and worked on it. I had to deactivate mu-plugins, drop-ins, and a couple of plugins to work on it.
The issue persists in a minimal install(2020 theme+Elementor+Toolset). The issue persists if we use deactivated Toolset Layouts and configured the restriction to display to a content template.
The restriction works for the options("Default error", "Show 404 – page not found").
Let me approach our 2nd tier about this issue and get back to you.
According to our 2nd Tier, the result is expected as Toolset Access will control the output of the post content.
Because you are using an Elementor Pro, it takes control over the output of the page. But the template uses the content widget. The content of the widget is then controlled by Access which displays the login form if the visitor is guest.
If you use a Content template, similar to Alumni, the result for a guest will not be mixed. If you want to keep the Elementor template, you will have to choose a different option for the guest restriction ("Default error", "Show 404 – page not found"), then you can customize your errors pages, using Elementor Pro, or editing directly the theme to include the login form.
I hope this helps. Let me know your feedback.