WordPress.org

Ready to get started?Download WordPress

Forums

Forward loggedin subscribers directly to frontpage, not to dashboard (2 posts)

  1. Lorrens
    Member
    Posted 5 years ago #

    Hi people!

    I'm looking for a plugin (not sure there is a plugin for this) .. what I want to do is this:

    Subscribers now log-in, but are forwarded to the Dashboard.. I want them to be directed to the Frontpage instead. How do I do this?
    'example' (i'm just a designer, not a programmer ;) :
    if login = succesful & subscriber = true
    - go to frontpage
    if login = succesful & otherrole (but not subscriber) = true
    - go to dashboard

    Is there a plugin for this? Or how do I do this?

    Thanks in advance!!
    Lourens, the Netherlands

  2. datamafia
    Member
    Posted 5 years ago #

    This gets you close. The "Redirect" can be put in the login form and redirect people where they need to be...

    As for switching on role, that is a little more complicated but hardly impossible.

    I often use a simple solution, 2 login forms. The native /wp-admin/ is kept but I add a new directory at site.com/login/ that is a copy (the HTML is fine) of the /wp-admin/ page with the redirect added.

    All your subscribers will go to /login/ and others to /wp-admin//

    Here is the hidden input:

    <input type="hidden" value="/index.php" name="redirect_to"/>

    Hope that helps a little.

Topic Closed

This topic has been closed to new replies.

About this Topic