Show teaser and featured image in archives and front page but password protect the full content

Hello, I can't find a way to hide the content of a post and just show the image and the excerpt in the archive pages or front page. 
I've found some tweaks but not working in Muffin themes because Be Theme doesn't use <code> <?php the_content(); ?></code>
Thanks. 
These is what I've found 

<code>

<?php
$content = explode('<!--more-->', $post->post_content, 2);
$teaser = $content[0];
if( !empty($content[1]) && !empty($post->post_password) && (stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password) ) {
echo apply_filters('the_content', $teaser);
}

the_content(); 
?>

</code>

Comments

Sign In or Register to comment.