Privacy settings (3 posts)

  1. megagrumpy64
    Posted 6 years ago #

    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?

  2. Deckster0
    Posted 6 years ago #

    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.


    <?php if(is_user_logged_in()){ ?>
    // Hidden Content for registered only goes here.
    <?php } ?>
  3. megagrumpy64
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic