Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › How can I do this? Show blog entries only to users with correct membership level
- This topic has 3 replies, 2 voices, and was last updated 13 years, 1 month ago by admin.
-
AuthorPosts
-
October 5, 2011 at 1:18 pm #4482martinMember
Hi there,
I am setting up membership access to a once a week blog post and audio download. Is it possible to have two levels of access – one for weekly access and the other for fortnightly – with the latter only ever seeing the content posted every second week?
Basically, I don’t want someone with fortnightly access to see the other material (in the ‘archive’ or ‘recent posts’ sections, for example) and be constantly being told ‘you have to upgrade to view this’ etc., I would just like them to only see every second week’s content.
Any ideas would be great, thanks
Martin
October 6, 2011 at 4:11 am #37332adminKeymasterBy default, eMember will do the following:
All the blog entries are visible to the users but the user who do not have access to a post won’t be able to see the actual content. They will get a message that tells them that this content is not available to them unless the account is upgraded.
Now, You want to modify this behavior so that the blog entries are not even shown to the users who do not have access to it. When a user logs in he only sees the blog entries that he has access to.
To achieve this you will need to modify the template file of your theme that shows your blog entries. You need to add condition around WordPress loop that displays the blog entries and make it so only a member with correct level will see the entry. WP eMember has functions/methods that you can use to find out various details of the user who is accessing the content. This will help you in accomplishing this customization. This documentation will explain the functions that I am talking about:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
Here is another blog post with a similar solution:
https://support.tipsandtricks-hq.com/forums/topic/hide-protected-content
October 6, 2011 at 7:40 am #37333martinMemberHey,
Thanks for the quick response. That’s a little bit beyond my skills so I’d need to pay to have someone do that for me, would you do this sort of thing and if so how much would you charge once the site is more fully developed?
Thanks
Martin
October 6, 2011 at 10:56 pm #37334adminKeymasterPlease use the contact form here to get in touch with us and we will discuss a custom development option (mention this forum post we know what it is for):
-
AuthorPosts
- You must be logged in to reply to this topic.