WordPress.org

Ready to get started?Download WordPress

Forums

Subscribers should log into the frontend of WP not dashboard... (5 posts)

  1. in2sky
    Member
    Posted 6 years ago #

    Hello all,

    I wonder if there's a plugin for WP that allows subscribers to log into the website directly, without having a dashboard once logged but the actual website/blog.

    This is quite annoying as once a subscriber logs and is on the dashboard, some information about the blog that should remain secret is displayed there.

    Thx.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    There's a few plugins for this, including a widget that can go into a sidebar.

    But you can also do it yourself just by creating the proper login form somewhere on the site. Here's the most basic form that will work. Modify it as needed.

    <form action="/path/to/wp-login.php" method="post">
    <label>Username: <input type="text" id="user_login" /></label>
    <label>Password: <input type="password" id="user_pass" /></label>
    <label><input type="checkbox" id="rememberme" value="forever" />
    Remember Me</label>
    <input type="submit" id="wp-submit" value="Log In" />
    <input type="hidden" name="redirect_to" value="http://example.com/where/you/want/users/to/go/afterwards" />
    <input type="hidden" name="testcookie" value="1" />
    </form>
  3. in2sky
    Member
    Posted 6 years ago #

    Woow, thank you so much! the plug-in works!
    I can't believe WP haven't thought of this.
    In any case it works and I love it :-)

  4. nlwillhite
    Member
    Posted 5 years ago #

    Hello...I have the same problem as above. I put the code in the side bar, and I get the appropriate sign in screen.

    However, I am doing something wrong...because I come up with a "page not found after entering the info.

    I am sure I am doing something wrong with the code. Exactly how do I change it to go where it is suppose to go?

    The "http://www.example..." is that where I place the URL to my Blog? The code is already on the page I want them to go to, so I am really confused.

    Any help would be greatly appreciated.

  5. rosemckay
    Member
    Posted 5 years ago #

    This doesn't work, am I missing something?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags