• Resolved steinheber

    (@steinheber)


    Hi,
    I’m new with wordpress and TML. I’d like to create an Header on my page. On the headers right area I’d like to place an user area, where he can log in, log out, edit his profile data etc. But I don’t know how to call the TML-pages for executing the TML pages for log in, log out etc. within my php code for the header. The following code works, but it’s wordpress functions. Is this the correct way?

    <div class="user-area">
    	<?php if(is_user_logged_in()): ?>
    		<a href="<?php echo wp_logout_url( get_permalink() ); ?>">Logout</a>
    	<?php else : ?>
    		<a href="<?php echo wp_login_url(get_permalink()); ?>">Login</a>
    	<?php endif; ?>
    </div>
    

    Can somebody help?

    thanks
    Bernhard

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

    (@jfarthing84)

    TML will override the WP URL’s where applicable. So, yes, this is fine. There’s also a shorted function for that: wp_loginout(). ??

Viewing 1 replies (of 1 total)
  • The topic ‘Call Login / Logout Page’ is closed to new replies.