• Hi!

    I would like to hide some content from unregistered users but do not get the syntax right… Would be very thankful for your help!!

    I would like something like this with the php plugin:

    <?php if ( bb_is_user_logged_in() ) : ?>
    HTML content for registred user
    <?php else : ?>
    HTML content for unregistred user
    <?php endif; // bb_is_user_logged_in() ?>

    I tried [php] if….[/php] and [php if ... /php] and other versions, but do not understand how to use it…

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hide content unregistered users’ is closed to new replies.