• When a site contains some content that requires users to login, in order to view it, isn’t it expected that they want to be shown that content rather than the administrative dashboard? In that, successful login should take them directly to that content. At minimum this would be the normal landing (front) page for the site. More ideally it could mean resuming from where they may have been prior to choosing to login.

    This seems like something that ought to be very common and thus something that is simple to do. However, I’ve been struggling with it for a while without being able to find an answer. What have I failed to grasp?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The plugin “Peter’s login redirect” is perfect for this.

    https://wordpress.org/plugins/peters-login-redirect/

    Thread Starter aajax

    (@aajax)

    Thanks, I’ll check it out.

    However, I think I’ve now made another discovery. It is still a work in progress but I’ve discovered that if I submit my own login form (i.e., custom HTML/PHP added to header.php in my child theme) to wp-login.php that this is what happens.

    This raises the question, “is that how wp-login.php is intended to work?”.

    Thread Starter aajax

    (@aajax)

    It looks to me like the subject plugin affects what happens after login. I can see how my question would be taken to mean this is what I want and it is. However, there is a little bit more to it. The main landing page, where any (public) user would find themselves, needs to offer a login option.

    Have now been able to retrofit the search button on my chosen base theme to present a login form in place of a search form. When that form is submitted to wp-login.php it does specify the main landing page rather than dashboard which solves that part of the problem. Normal WP operation allows the toolbar to be displayed at the top of the window. It provides a logout option, which means I haven’t yet tried to do that.

    Therefore, site is now close to being ready to deploy. What remains is desire to have logout re-direct to landing page which now has login form available rather than the normal WP login page.

    Is there any possibility that WP has such an option that I just haven’t figured out how to do?

    Thread Starter aajax

    (@aajax)

    Unable to find anything that could be called an option even though this seems like it should be simple as well as commonly desirable. In that, why NOT have a General option that says “Where to go on logout?”.

    Anyway, because this project does involve building of a child theme it turned out to be very easy. Reference this link.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to bypass dashboard page when logging in?’ is closed to new replies.