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.