Simple Membership Plugin › Forums › Simple Membership Plugin › Custom Content Type Archive Restriction
- This topic has 2 replies, 2 voices, and was last updated 1 month, 3 weeks ago by
juwe81.
-
AuthorPosts
-
October 12, 2026 at 7:03 am #32368
juwe81
ParticipantHello, 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_archiveto true, and that created an archive page which I can access via:https://mywebsite/resourcesI 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.October 13, 2026 at 6:18 am #32374admin
KeymasterHi, A custom post type archive like /resources isn’t a regular page or post, so it doesn’t have the protection settings box in the editor. Protecting the Elementor template won’t work either, because the template is only a layout.
You can protect it with the URL lockdown feature in the Full Page Protection addon. It works with the page URL, so it doesn’t need a page in the dashboard.
https://simple-membership-plugin.com/full-page-protection-addon-simple-membership/- Install and activate the Full Page Protection addon.
- Go to its settings page in the Simple Membership menu.
- Check the Lockdown Specific Page URL option.
- In the URLs field, enter the full archive URL, including
https://. For example:https://yourdomain.com/resources
If your archive has multiple pages, add /resources/page/ to the URL Patterns field so the paginated pages (/resources/page/2/, etc.) are protected too. - Save the settings, then test the archive in a private/incognito browser window.
- Visitors who aren’t logged in, and members whose account has expired, will see the protection message instead of the archive.
Please note this feature checks whether the visitor is a logged-in member with an active account. It doesn’t check a specific membership level. Since your site uses the Lifetime level, this should be exactly what you need. If you add more membership levels later and want only certain levels to see the archive, let us know and we can suggest a small code snippet for that.
Hope this helps.
October 13, 2026 at 6:51 am #32375juwe81
ParticipantThis is genius! I was about to create a plain page to replace the dynamyc page but with this feature you just saved me the trouble.
Thank you so much! Amazing plugin! I’ll make sure to leave a good review.
-
AuthorPosts
- You must be logged in to reply to this topic.