<?php
/**
* @package WordPress
* @subpackage Motion
*/
/*Template Name: Subscribers Only */
?>
<div id="main">
<div id="content" class="full">
<?php get_header(); ?>
<?php if(is_user_logged_in()): ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( function_exists( 'wp_list_comments' ) ) : ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php else : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<?php endif; ?>
<div class="posttop">
<h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="postcontent">
<?php the_content( 'Read more ?' ); ?>
<div class="linkpages"><?php wp_link_pages( 'link_before=<span>&link_after=</span>' ); ?></div>
</div>
<small><?php edit_post_link( 'Admin: Edit this entry' , '' , '' ); ?></small>
</div><!-- /post -->
<div id="comments">
<?php if ( function_exists( 'wp_list_comments' ) ) : ?>
<!-- WP 2.7 and above -->
<?php comments_template( '', true ); ?>
<?php else : ?>
<!-- WP 2.6 and below -->
<?php comments_template(); ?>
<?php endif; ?>
</div><!-- /comments -->
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<div class="posttop">
<h2 class="posttitle"><a href="#">Oops!</a></h2>
</div>
<div class="postcontent">
<p>What you are looking for doesn't seem to be on this page...</p>
</div>
</div><!-- /post -->
<?php endif; ?>
<?php else:
wp_die('Sorry, you must first <a href="/blogs/wp-login.php">log in</a> to request a sample. You can <a href="/blogs/wp-login.php?action=register">register free here</a>.');
endif; ?>
</div><!-- /content -->
</div><!-- /main -->
<?php get_footer(); ?>
Can you try with the one above?
<?php if(is_user_logged_in()): ?>
here goes the content you want to show only to logged users
<?php else:
wp_die('Sorry, you must first log in to request a sample. You can register free here.');
endif; ?>