You are here: Home
Support site for Tips and Tricks HQ premium products
Dear Admin,
Please send it to me as well.
Best regards
Alex
I 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)