• Resolved tzeldin88

    (@tzeldin88)


    When using TML’s “Enable Themed Profiles” module, the url of the edit-profile page is “mysite.com/login/?action=profile”.

    I understand that this is because the TML shortcode is on the “login” page, and the “action=profile” query string tells TML to show the Edit Profile form instead of the Login form.

    But this url structure is different than the rest of the site. Is there any way to enable TML’s Themed Profiles to show a url without a query string, so it’s more consistent with normal WP urls, like:
    – mysite.com/edit-profile/
    – mysite.com/login/edit-profile/
    – mysite.com/members/edit-profile/

    Thanks in advance for any suggestions.

    http://wordpress.org/extend/plugins/theme-my-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    This will actually be a feature for 6.2. Meanwhile, create wp-content/plugins/theme-my-login-custom.php and add the following to it:

    <?php function tml_permalinks() {
    	add_rewrite_rule( 'register/?$', 'index.php?pagename=login&action=register' );
    	add_rewrite_rule( 'edit-profile/?$', 'index.php?pagename=login&action=profile' );
    }
    add_action( 'init', 'tml_permalinks' ); ?>

    Then visit the Permalink settings page and save. That should do it!

    Thread Starter tzeldin88

    (@tzeldin88)

    Thanks Jeff, I’ll try this out. Thanks for the fast response here, and for such a great plugin.. I just donated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Theme My Login] URL for Themed Profile editing’ is closed to new replies.