Problem with logging in WP users automatically
In the end, wp_signon() was the solution, as the cookie was apparently not set with the code I was using. I followed this solution https://gist.github.com/iandunn/8162246 to circumvent a need for password and added these functions to functions.php. I also moved the autologin code from ‘init’ to template where it executes before any headers are sent … Read more