Tips and Tricks HQ Support Portal › Forums › WP eMember › Protection not working for blog page
- This topic has 5 replies, 3 voices, and was last updated 10 years, 9 months ago by admin.
-
AuthorPosts
-
August 25, 2011 at 7:41 pm #4152clamorateMember
Hi,
I am using my wordpress theme as a public site as well as a membership site, and one of the membership features is access to the blog. The blog is not located on the home page of the site, and I am using wordpress’s Settings > Reading > Posts to … to point the blog posts to my “Blog” page (not the homepage).
The eMember plugin does not function if you protect whatever page that you tell wordpress to populate with blog posts. I have setup the protection in eMember, but it doesn’t work. Is there any php code that I could put right into my wordpress theme’s index.php which would force protection?
Thank you for your assistance!
August 26, 2011 at 1:47 am #35880adminKeymasterThere are available functions that can help you with custom protection. This document will help:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
August 26, 2011 at 5:10 am #35881clamorateMemberThank you for the response. I have visited that page, but I can’t find a solution. Here’s what I am hoping to accomplish: I have created a page in wordpress called “home” (which is open to the public) and another page called “blog” (which I have enabled eMember protection). In the wordpress admin under Settings > Reading, I have changed the option to:
Front page displays – A static page
Front Page: home
Posts Page: blog
When I do this, the protection I set on the “blog” page doesn’t work, and it leaves it open to the public. I am certain it is actually using the wordpress index.php file as the template for the blog page, so are there any modifications I can do (using the eMember php codes) to protect my blog page?
Thank you very much for your help!
August 26, 2011 at 8:39 am #35882adminKeymasterOkay the first think you need to understand is that eMember protects the content of individual posts, pages and comments. It doesn’t protect the full page where you may have a list of posts unless you are using “Domain level lockdown” option from the settings menu.
So to add more clarification… eMember won’t protect the whole “Blog” page by default no matter what you do (it lets the visitors see individual posts). It will only protect the content of the individual posts that you specify it to protect.
Now, if you want to do any kind of custom protection that is not a general practice in eMember you can use functions to wrap your content in to protect it. Few examples are given in this page:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
Does that make sense?
March 11, 2014 at 7:08 pm #35883fakierockMemberI am also having the same problem. I am setting all of my blog posts to yes, protect this content, but when I come back to edit the post it has changed to no, don’t protect this content. This happens every few days and my blog posts aren’t staying protected?
March 12, 2014 at 2:12 am #35884adminKeymasterThat is a little strange. I am going to recommend you do the following:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
Then read the following post to make sure you know how the content protection works in eMember:
Let me know if you see this issue again after doing the above.
-
AuthorPosts
- You must be logged in to reply to this topic.