- This topic has 0 replies, 1 voice, and was last updated 9 hours, 7 minutes ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Custom Content Type Archive Restriction
Hello, first of all, thank you for the amazing plug-in you’ve developed. I integrated it into my site, and it has worked amazingly so far. Before I get to the payments configuration, I bumped into a case that I’m not sure how to fix, and I’m not sure if it’s possible considering the current architecture.
I installed a plugin to create custom content types (CPT UI) and created a post type called Resources. I already restricted access to the posts belonging to that type to a membership (Lifetime) level I created with Simple Membership. However, when I created the post type, I set has_archive to true, and that created an archive page which I can access via:
https://mywebsite/resources
I also want to restrict that URL to members only, but there’s no actual page in the dashboard where I can change the configuration, which I usually find at the bottom of the page I want to restrict.
My question is: Is there a way to restrict pages that “don’t exist” in the dashboard UI but are generated dynamically like that?
One more thing that might be relevant. To customize the UI in that URL, I’m using elementor through a template and then assigning it to the convention Resources Archive. I already tried to restrict membership access to the template, but it doesn’t work.
I hope my question is not too confusing.
Would appreciate any hints or suggestions.