Embedding the login on the page but it doesn't log in
-
I am developing a simple theme and I have a section in the header that determines if a user is logged in and if they are not then it displays a login for them to do so.
The trouble is that login displays but it doesn’t work, I click login and it looks like it starts to run but then does nothing.
I used this code to generate it:wp_login_form();
The WP site currently resides only on my machine (so I am running it on localhost) so I can’t provide a link to show you but currently it is a fresh install of WordPress and here is my github repository for the theme.
I looked at the network tab and everything was status 200 after clicking submit. What was interesting is the page did refresh when I clicked submit, so it does do something.
I also turned on WP_DEBUG to true, but nothing popped up.
Side question: After a user does log in is there a way programatically I can have them go back to the page they were on instead of the WordPress admin panel or am I required to use a plugin?
- The topic ‘Embedding the login on the page but it doesn't log in’ is closed to new replies.