Support » Fixing WordPress » Privacy settings

  • I have been using WordPress for a blog but now want to expand it to a CMS. I would like to make some areas of the site only visible to certain registered people. Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Privacy settings’ is closed to new replies.