WordPress.org

Ready to get started?Download WordPress

Forums

Hide Posts Unless Logged In (1 post)

  1. andymatic
    Member
    Posted 9 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.