+1 for this question!
I’d like to have different wordpress pages for
- login
- register
- lost password
- profile
I’ve managed to get it for the first 3: I’ve created 3 WP pages and setted their slugs as permalink for login, register and lost password pages in tml->General->Permalink settings.
Then I’ve writed some text in every page followed by the relative shortcode:
FOR LOGIN PAGE
[theme-my-login default_action=login login_template=tml-login-form.php]
FOR REGISTER PAGE
[theme-my-login show_title=0 default_action=register register_template=tml-register-form.php]
FOR LOST PASSWORD PAGE
[theme-my-login show_title=0 default_action=lostpassword lostpassword_template=tml-lostpassword-form.php]
But now I’m not able to replicate this strategy for the profile page.
I’ve created a WP page for the themed profile and I’ve putted this shortcode in it’s content:
[theme-my-login default_action=profile profile_template=tml-profile-form.php]
As result I was getting this php error:
Call to undefined function get_user_to_edit() in themed-profile.php on line 192.
So I’ve added this code on line 191 in the function get_profile_form:
if(!(function_exists('get_user_to_edit'))){
require_once(ABSPATH.'/wp-admin/includes/user.php');
}
And now I can see all my profile data but… all modification to the profile are not saved unless I change the form action to slugforloginpage?action=profile.
In this case chenges are saved but this redirect me the login page showing my profile data.
Hope someone can help with this!