Simple Membership Plugin › Forums › Simple Membership Plugin › Custom Category page fails to be protected
Tagged: Custom Post Type, elementor
- This topic has 6 replies, 3 voices, and was last updated 3 years, 2 months ago by
BryGuy.
-
AuthorPosts
-
January 27, 2023 at 7:03 pm #25095
BryGuy
ParticipantHello,
I have inherited a site using Simple Membership together with other customizations. The client just let me know that the content protection for some of the members-only content is not working. Particularly, a custom post type with a custom archive page using an Elementor query to the custom post type fails to be protected by the simple membership page protection. Anyone have a sense of where to look for solutions to this issue? Thanks
January 27, 2023 at 7:32 pm #25096DocCarter
ParticipantHi BryGuy, since I’ve spent a ridiculous amount of time trying to solve a few really simple (boneheaded) challenges with Simple Membership, I’m curious about your challenge. Are you talking about full-page protection or partial protection? When you mention Elementor query, do you mean it’s pulling content from one page/post to another page/post? Are both source and destination pages protected?
January 27, 2023 at 10:26 pm #25097BryGuy
ParticipantHi DocCarter! I appreciate the follow up.
Yes an Elementor Cards component is pulling a custom ‘newsletter’ post type into a regular post with full page protection enabled. The protected page appears to somehow be designated as a custom archive for the newsletter CPT. I’m probably doing something boneheaded as well 💀. Appreciate the advice
January 29, 2023 at 12:06 am #25100mbrsolution
ModeratorHi, to learn more about how the category protection works in our plugin, please read the following documentation.
https://simple-membership-plugin.com/use-category-protection-membership-site/
The following addon helps to protect custom posts.
https://simple-membership-plugin.com/simple-membership-addon-better-custom-post-type-protection/
If the above options does not help, you can try the following addon.
https://simple-membership-plugin.com/full-page-protection-addon-simple-membership/
Let me know how you go.
Kind regards.
January 29, 2023 at 12:31 am #25103DocCarter
ParticipantI’ll bet it has something to do with the Elementor Cards component.
Is the source custom ‘newsletter’ post full-page protected? (I gather it is but just want to be sure.)
I’ve never used Elementor Cards but based on what I’ve quickly read, it seems to pull preview content into a “card” with a “more” link to view the full post. Some thoughts here:
(1) Other plugins I’ve used for galleries and such have protection options on them (so that the gallery images can’t be accessed directly). So perhaps Elementor Cards also need to be protected individually?
(2) The “more …” link is something I do have experience with, though not with Elementor Cards. With Simple Membership partial protection, you can specify the preview text (the part that’s not protected). Partial protection and Full Page protection (both Simple Membership plugin) will fight with each other, resulting in no protection at all. Elementor Cards may have a similar challenge, where the preview content is fighting with full-page protection.
(3) Does the page displaying the cards have full-page protection? Is it possible you have a situation where the Elementor cards display unprotected preview text with “more” links to pages with full-page protection?
(4) Are the target pages linked to from the “more” links in the Elementor Cards something other than the original custom “newsletter” posts? Or are the custom “newsletter” posts being pulled into new pages/posts? And if the latter, are the new pages/posts protected?
January 29, 2023 at 1:49 am #25105DocCarter
ParticipantI keep thinking about this. I strongly suspect the problem is (2) in my previous post: Elementor Cards displays preview content that is fighting with full-page protection. If that’s what it is, one solution is to use only partial protection (default for Simple Membership plugin) and not use full-page protection. You would need to manually specify what is protected and what is not in the ‘newsletter’ posts to facilitate the preview content that Elementor Cards pulls in. I’m not sure what happens if the page containing the Elementor Cards is full-page protected … Maybe it would protect the preview content in the cards? However, if someone were to access the ‘newsletter’ posts directly they would see the preview content (with the rest being protected by simple Membership).
You may also be able to protect the ‘newsletter’ posts as a category in settings, but that’s beyond my understanding of the plugin! (And I don’t know how the Elementor Cards “preview” would interact with category protection.)
January 30, 2023 at 12:43 am #25112BryGuy
ParticipantHi DocCarter, mbrsolution
Thanks so much for the in-depth explanation. This helped me immensely! I went with the full page protection and am protecting the affected pages by URL pattern. I was hoping to figure out how this worked enough to get the headers and footers, but this is good enough. Much appreciated!
-
AuthorPosts
- You must be logged in to reply to this topic.