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

    (@jfarthing84)

    The function wp_register should return TML’s register link…

    Thread Starter wpraj

    (@wpraj)

    Hi Jeff,

    Yes that’s what I have used and this is fine but after login the “Site Admin” links to /wp-admin/ but it should be inside the site to edit the profile.

    Thanks,
    Raj

    Plugin Author Jeff Farthing

    (@jfarthing84)

    So, how about:

    <?php if ( ! is_user_logged_in() ) : ?>
    	<a href="<?php echo site_url( 'wp-login.php?action=register', 'login' ); ?>"><?php _e( 'Register' ); ?></a>
    <?php else : ?>
    	<a href="<?php echo site_url( 'wp-login.php?action=profile', 'login' ); ?>"><?php _e( 'Your Profile' ); ?></a>
    <?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Register link and link to profile’ is closed to new replies.