• Hi,
    I am looking for a plugin that allows me to
    1. display logged in users a different page view
    2. a user menue that enables them to edit their own pages

    Is this possible in WordPress?

    help highly appreciated
    regards
    rodpacker

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure this will help but this is what I used to use:

    <?php global $user_ID, $user_identity, $user_level ?>
    <?php if ( !$user_ID ) : ?>
    <a href="https://www.YourSite.com/wp-login.php">Log in</a> | <a href="https://www.YourSite.com/wp-login.php?action=register">Register</a>
    <?php else : ?>
    Welcome <strong><?php echo $user_identity ?></strong> |
    <a href='<a href='<?php echo wp_logout_url(); ?>&redirect_to=/'>Logout</a>
    <?php endif; ?>

    The above code will show two text links:

    Log In | Register

    After logging in the page will show this message:

    Welcome NAMEOFUSER | Log Out

    —————–

    If you want users to be able to write and edit posts, you need to go to Settings >> General and change New User Default Role from Subscriber to Author. To acess the dashboard the user will need to go to:

    https://YOURSITE.com/wp-admin/

    For more on user roles see this:

    https://codex.www.ads-software.com/Roles_and_Capabilities

    Thread Starter rodpacker

    (@rodpacker)

    Hi TransPersonal,

    thanks sooo much for the detailed info and the valuable codesnippets!!!

    Highly appreciated ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Usermenue after login / UserFrontend’ is closed to new replies.