• I have been googling for what seems like forever. I have a client that needs to have the ability to give her clients their own user name and password. Once they login to the site, they are directed to a page specifically for them and not viewable by other clients. I have tried plugins and most seem to complicated for my task. I have a start with the code below, but don’t know where to go after that. If anyone has an idea of how I could accomplish this, I would greatly appreciate it.

    <?php if ( is_user_logged_in() ) { ?>
    <!-- text that logged in users will see -->
    <?php } else {   ?>
    <!-- here is a paragraph that is shown to anyone not logged in -->
    <p>This is a registered client area only. Please <a href="<?php bloginfo('url'); ?>/index.php?contact-us">contact us</a> if you are a client and need a login name and password to access your report.</p>
  • The topic ‘Using Function Reference/get currentuserinfo to load specific user content’ is closed to new replies.