Ok, so I figured out how to make it work in weird way, I used
<?php echo do_shortcode('[theme-my-login default_action="register"]'); ?>
However, now I’m facing another problem. it’s the error messages, nothing shows up when I enter wrong login details. tried to call the error functions of wordpress myself, didn’t work, disabled other plugins and tried, didn’t work.
any suggestions?
My theme page code looks like this:
<?php
/*
If you would like to edit this file, copy it to your current theme's directory and edit it there.
Theme My Login will always look in your theme's directory first, before using this default template.
*/
?>
<?php if (is_page('login')) { ?>
<style type="text/css">
.entry-header {display:none}
</style>
<?php } ?>
<script type="text/javascript">
jQuery(function(){
jQuery('.expand-login').toggle(
function(){ jQuery('.login-form').show('slow'); },
function(){ jQuery('.login-form').hide('slow'); }
);
});
</script>
<div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
<div class="small-centered-column">
<div class="small-centered-column2">
<h1>Join ReFash</h1>
<p>and share your passion for pics and fashion!<br />
We are your marketplace to love, shop and sell Vintage and 2nd Hand. Discover new styles and old treasures and show of your skills in styling and photography.
</p>
<p>
GET INSPIRED · GET CREATIVE · REFASH!
</p>
<?php $template->the_action_template_message( 'login' ); ?>
<?php $template->the_errors(); ?>
<button class="expand-login">Login</button>
<div class="login-form" style="display: none;">
<form name="loginform" id="loginform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'login' ); ?>" method="post">
<a href="#" id="login-email-link"></a>
<div id="login-email-form">
<p>
<label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ) ?></label>
<input type="text" name="log" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'log' ); ?>" size="20" />
</p>
<p>
<label for="user_pass<?php $template->the_instance(); ?>"><?php _e( 'Password', 'theme-my-login' ) ?></label>
<input type="password" name="pwd" id="user_pass<?php $template->the_instance(); ?>" class="input" value="" size="20" />
</p>
</div>
<p class="forgetmenot">
<input name="rememberme" type="checkbox" id="rememberme<?php $template->the_instance(); ?>" value="forever" />
<label for="rememberme<?php $template->the_instance(); ?>"><?php _e( 'Remember Me', 'theme-my-login' ); ?></label>
</p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php _e( 'Log In', 'theme-my-login' ); ?>" />
<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'login' ); ?>" />
<input type="hidden" name="testcookie" value="1" />
<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
</p>
</form>
</div>
<?php do_action( 'login_form' ); // WordPress hook ?>
<?php do_action_ref_array( 'tml_login_form', array( &$template ) ); // TML hook ?>
<?php $template->the_action_links( array( 'login' => false ) ); ?>
</div>
</div>
</div>