Wordpress: s2members used to lock down a taxonomy archive page
<?php
/**
* Archive Template
*
* The archive template is basically a placeholder for archives that don't have a template file.
* Ideally, all archives would be handled by a more appropriate template according to the current
* page context.
*
* @package Hybrid
* @subpackage Template
*/
get_header(); // Loads the header.php template. ?>
<div id="content" class="hfeed content">
<?php do_atomic( 'before_content' ); // hybrid_before_content ?>
<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
<?php if ( is_user_logged_in() && current_user_can("access_s2member_level1") ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'before_entry' ); // hybrid_before_entry ?>
<div class="entry-summary">
<?php get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'thumbnail' ) ); ?>
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php do_atomic( 'after_entry' ); // hybrid_after_entry ?>
</div><!-- .hentry -->
<?php endwhile; endif; else: ?>
<p>You need to be logged in to view this resource</p>
<? endif; ?>
<?php do_atomic( 'after_content' ); // hybrid_after_content ?>
</div><!-- .content .hfeed -->
<?php get_footer(); // Loads the footer.php template. ?>