Skip to:
Content
Pages
Categories
Search
Top
Bottom

/members only for members

  • Avatar of royroy
    royroy
    Participant

    @royroy

    Hi guys,
    I’m creating a privat comunity, works 100%, but when a guest type:
    mysite.com/members/name

    he can view all the member page.

    I installed a lot plugins linke (members only) but, the page /members/ keep open to anyone.

    can you guys help-me pls ?

    thx

Viewing 1 replies (of 1 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @royroy not sure why your membership plugin is not working out on the members directory page. Easiest way to make the page for members only is to open up your members/index.php

    At the very top of the file, above all other code, just add

    <code><?php if ( !is_user_logged_in () ) : ?>
    <h2>This is a Members-Only Area. Please register first.</h2>
    <?php else : ?></code>

    At the very bottom of the same file, below all other code, add

    <code><?php endif; ?></code>

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.