Results 1 to 3 of 3

Thread: Looking for a membership plugin

  1. #1
    Karl1's Avatar
    Karl1 is offline Hello World
    Join Date
    Jul 2011
    Location
    Seville, Spain
    Posts
    35

    Default Looking for a membership plugin

    Hi,
    I'm looking for a plugin that I can select which pages are shown to everybody and others that only registered subscribers can see.

    I don't want to use the WP private pages features, it makes the pages invisibles even on menus, I want them to see a message when they try to access the page/post

    thanks

  2. #2
    chipbennett's Avatar
    chipbennett is offline WordPress Legend
    Join Date
    Feb 2009
    Location
    St. Louis, MO
    Posts
    1,997

    Default

    You don't need a Plugin for that. Just edit your Loop using the is_user_logged_in() conditional. e.g.:

    PHP Code:
    <?php
    if ( is_user_logged_in() ) {
        
    // Current user is logged in.
        // show the usual content
        
    the_content();
        
    wp_link_pages();
    } else {
        
    // Current user is not logged in.
        // Show message
        
    ?>
        <p>INSERT MESSAGE HERE</p>
        <?php
    }
    ?>
    WP TurnKey - Turn-Key WordPress installation and maintenance services
    WordPress user since 2005 | @chip_bennett | chipbennett.net | cbnet Plugins

  3. #3
    Karl1's Avatar
    Karl1 is offline Hello World
    Join Date
    Jul 2011
    Location
    Seville, Spain
    Posts
    35

    Default

    thanks, I solved it with one membership plugin that also allows shortcodes.
    This way I can hide/show the content I want instead of hiding the full page.

    cheers
    Last edited by Karl1; 09-23-2011 at 12:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •