Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › eMember – show excerpt of protected post before protection message
Tagged: excerpt, More tag protection, protected content
- This topic has 14 replies, 8 voices, and was last updated 10 years, 1 month ago by admin.
-
AuthorPosts
-
June 29, 2012 at 5:07 pm #6725friendsjournalMember
I’d like to protect posts but show the excerpt (WordPress manual excerpt) before the Please Login to view this Content message on the single post display. Can this be done?
June 30, 2012 at 12:23 am #46675IvyMemberI believe you are looking for the “More Tag” protection options. With this option it will show all the content above the more tag but anything below the more tag is protected.
You can find this setting in the eMember settings page.
Enable More Tag Protection:
Enables or disables “more” tag protection in the posts and pages. Anything after the More tag is protected. Anything before the more tag is teaser content
September 4, 2012 at 7:42 pm #46676bearlyMemberHow do I show the written content above my videos but block the videos on the same page I think it is with enable more tag protection which I checked but now what . Bill
September 4, 2012 at 8:57 pm #46677bearlyMemberwhere is the more tag ? on the backend of the page? or in settings somewhere ?
thanks, Bill
September 4, 2012 at 10:21 pm #46678johnw1965MemberThe “more” tag is a native WordPress feature
http://en.support.wordpress.com/splitting-content/more-tag/
“Enable More Tag Protection” is an eMember option found under Settings > General Settings.
September 4, 2012 at 10:30 pm #46679bearlyMemberHello yes I am trying to let non members see the written content at the top of the page while hiding the actual videos at the bottom of the page
September 4, 2012 at 10:39 pm #46680bearlyMemberIs this possible or do I have to put the content on a different page non-protected?
September 5, 2012 at 6:27 am #46681adminKeymasterWP eMember’s section protection feature should help you achieve what you are after. Have a look at the documentation here:
http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
January 19, 2013 at 5:07 pm #46682alberts75MemberThere are doesn’t display post excerpts on archive page Thesis theme after protecting part of post content with “more” tag. How is possible resolve this?
January 20, 2013 at 10:39 pm #46683adminKeymasterWhat version of eMember plugin and thesis theme are you using?
January 22, 2013 at 10:49 am #46684alberts75MemberI use Thesis 1.8.2 / WP eMembers v8.5.4. Here is the site: atirance.com
January 22, 2013 at 11:14 pm #46685adminKeymasterHi, Your site is not in English so I couldn’t find and click on the archive link. Please post a link to the page where I can go and see the issue you described.
Did you try using the partial protection feature of eMember?
http://www.tipsandtricks-hq.com/wordpress-membership/how-to-protect-a-section-of-a-post-or-page-88
The partial protection feature gives you more control in terms of what exactly should be shown and not shown in a post so it is good for creating teaser.
August 19, 2013 at 1:06 am #46686myfrenchentrepriseMemberI found another solution:
In wp_eMember1.php remove the comment in front of the line :
add_filter(‘the_excerpt’,’secure_content’, 11);
Change the line to
add_filter(‘the_excerpt’,’secure_content_excerpt’, 11);
on line 1183 (after the end of the secure_content function) add the following function :
function secure_content_excerpt($content){
global $post;
$raw_excerpt = $post->content;
if ( ” == $text ) {
$text = get_the_content(”);
$text = strip_shortcodes( $text );
$text = str_replace(‘]]>’, ‘]]>’, $text);
$excerpt_length = apply_filters(‘excerpt_length’, 55);
$excerpt_more = apply_filters(‘excerpt_more’, ‘ ‘ . ‘[…]’);
$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
}
return apply_filters(‘wp_trim_excerpt’, $text, $raw_excerpt);
}
Hope this will help.
(sorry for the english i’m french)
October 8, 2014 at 2:33 am #46687phytochemMemberHello Tips and Tricks,
In this post, I try to ask some questions and at the same time, share some information to other eMember users.
I have a similar “issue” with the thread starter: I want teaser content to show but it isn’t showing. I do have Enable More Tag Protection enabled/checked, BUT at the same time the content is located inside a *protected* category. Perhaps Enable More Tag Protection only works well on content that is outside a *protected* category?
I did two experiments to see the outputs (both content inside a *protected* category, and membership levels are protected within each post)
1. On one post, I used the More tag but no teaser content is showing. Only “Please Login to view this Content…” message is showing:
Content here
More tag here
2. On another post, I used partial content protection along with the More tag:
[emember_protected scope=not_logged_in_users_only]
Content here
[/emember_protected]
More tag here
[emember_protected for=2-3-4-5]
Content here
[/emember_protected]
This one showed a teaser content. When a non-logged in user clicks on the “Read More” button, it shows content after the More tag and a warning image which says “This content is for members only.”
I would ideally prefer to have a teaser content for number 1 above — *without* invoking section protection features as I have done in number 2. Is that possible in a protected category?
Does individual post protection offer the same level of protection and protection guarantee as category protection? Right now, I view the category protection as a surefire way of guaranteeing protection, hence I used it.
Thank you very much
October 8, 2014 at 10:23 pm #46688adminKeymasterThe individual post or page protection offers the same level of protection as the category protection.
The more tag protection works on any blog post (regardless of whatever protection you apply to that post). So it work for category protection and normal individual post protection.
The test you are doing is on a blog post (and not a page) correct?
Did you do the theme switching test just to make sure your theme is outputting the content correctly on the archived page:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
-
AuthorPosts
- You must be logged in to reply to this topic.