I'm making use of this custom code to my loop.php file to restrict non-registered members access to posts from a certain category (cat 1)
<?php if (is_user_logged_in() && $cat == '1') { ?>
<?php the_content(); ?>
<?php } else { ?>
<?php the_excerpt(); ?>
<?php } ?>
However this piece of code doesn't help much as it restricts all posts from other categories as well.
Any suggestions?