Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The plugin only blocks what WordPress puts into the $content variable via the the_content() function. If you have hardcoded HTML in your template you don’t want to display, WP and WP-Members have no knowledge of that.

    To only display the content if the user is logged in, you need to use the is_user_logged_in() function:

    <?php if ( is_user_logged_in() ) { ?>
    
         <p>Some HTML stuff for logged in users</p>
    
    <?php } ?>
Viewing 1 replies (of 1 total)

The topic ‘Using WP Members with custom template’ is closed to new replies.