Support » Plugins » Hide Posts Unless Logged In

  • I want to hide all posts unless a user is logged in. I rifled through the Comments template for clues. Looks like this is one way:

    <?php if ( $user_ID ) {

    (output stuff)


    else {

    (output not logged in message)

    } ?>

    Any other methods folks have tried? Thanks!

  • The topic ‘Hide Posts Unless Logged In’ is closed to new replies.