Michael,
Thanks for the quick response!
I believe that is the snippet that Eyephoto was using in his example above, but I can’t actually get it to redirect to the login page. I’m sure its syntax, but here is what I’m trying to insert (fro Eyephoto’s example above):
<?php if ( is_page('45') && !$user_ID ) : ?>
<p> You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to view this page. </p>
<?php endif; ?>
If I try to access the hidden page directly by the url, what I’m getting is the “hidden” page itself (the one I’m trying to redirect away from if the user is not logged in).
should my redirect be something other than "<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"