You can use is_user_logged_in()
it will return TRUE
if it’s a registered and logged in user otherwise it will return FALSE
.
Example:
<?php if(is_user_logged_in()){ ?>
// Hidden Content for registered only goes here.
<?php } ?>
Thanks for the reply. I was hoping I would not have to do any coding but I guess I will have to bite the bullet. I was hoping that there was a plugin that would allow you to mark certain areas of a site to be only accessible by certain categories of user. Like on a company website where you can have an external login which allows you to see the products and the company publicity and an internal login that allows you to access other areas.
I think phpbb allows this as you can set up individual permissions for specific topics which include read permissions, so I was expecting wordpress to have something similar for categories.