My title says it all. I have a thumbnail gallery that uses the title and the excerpt overlaid on a picture. I still want the excerpt to be displayed because it shows clarifying info, it's just the post that needs to be hidden. And i hate the the default text that shows up for the_excerpt when the post is protected. Here's the code:
<?php if (post_password_required($post)) { ?>
<div id="gal_preview">
<?php the_post_thumbnail(); ?>
<h4><?php the_excerpt(); ?></h4>
</div>
<?php } else {
the_excerpt();
} ?>