This looks like the solution I'm trying to accomplish -- displaying a teaser (anything above the more tag) on protected pages.
However, I can't seem to get the snippet to work.
I've placed the snippet in my functions file, and ensured my membership ID is 2.
What else am I missing?
What I would try is to disable all plugins (minus MM) and test base wordpress theme and see if that works.
It could be that another plugin or your theme is filtering the content too.
One thing to try would be to add a priority of 0 to the filter to make sure that fires before any other filter
add_filter( 'the_content', 'restrict_mm_access', 0 );
Ok, I seem to have tracked down the issue.
The above code works, but on blog postings. Is there a way to modify it, so that it applies to all of the custom post types (CPT) I'm using on the site?
I don't need it to restrict blog postings (they're publicly available), but rather two CPT called, Tools, and Articles.
Thanks!
Eric S
Hello,
I was looking for a simple solution to protect content after the standard Wordpress <!-- more --> tag. I contacted support and they responded with:
Thank you for contacting MemberMouse support. The <!--more--> tag is something that MemberMouse takes into account but only in certain scenarios as described in this article:
In order to have the control you are looking for, I recommend that you use the MM_Access_Decision SmartTag: Access Decision SmartTag (MM_Access_Decision)
That didn't really work for me so I came up with a quick solution for it. I am looking to improve it so if anyone has any better options than please let me know!
Again, this works great for my situation, I was just looking to improve upon it.
Thanks!