Forma simples de Inserir formulário de login em uma páginas do wordpress.
<?php /* exibe o login caso seja a página xxx*/ if ( is_page( 'xxx' ) ) { ?> <?php if ( !(current_user_can( 'level_0' )) ) { ?> <h2>Login</h2> <form class="wpcf7-form" action="<?php echo get_option( 'home' ); ?>/wp-login.php" method="post"> <div class="col-xs-6 form-group"> <span class="wpcf7-form-control-wrap your-name"> <input type="text" name="log" id="log" value="<?php echo wp_specialchars( stripslashes( $user_login ), 1 ) ?>" class="form-control" /> </span> </div> <div class="col-xs-6 form-group"> <span class="wpcf7-form-control-wrap your-name"> <input type="password" name="pwd" id="pwd" class="form-control" /> </span> </div> <div class="col-xs-4 form-group btn-contact7 margin-top-20"> <input type="submit" name="submit" value="Logar" class="wpcf7-form-control wpcf7-submit btn-blue-center" /> </div> <p> <label for="rememberme"> <input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Lembrar de mim</label> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> </p> </form> <a href="<?php echo get_option( 'home' ); ?>/wp-login.php?action=lostpassword"> Recuperar senha</a><br /> <?php } else { ?> <hr /> <h2 style="color: #1a189f;">Você está logado</h2> <a href="<?php echo wp_logout_url( urlencode( $_SERVER['REQUEST_URI'] ) ); ?>">logout</a><br /> <div class="col-xs-4 form-group btn-contact7 margin-top-20"> <a href="#" type="submit" name="VER ARQUIVOS" value="VER ARQUIVOS" class="wpcf7-form-control wpcf7-submit btn-blue-center" />VER ARQUIVOS</a> </div> <a href="http://XXX/wp-admin/">Admin</a><br /> <?php } ?> <?php } else { // Caso não seja a página mostra isso... } ?>