Last active
February 3, 2020 15:24
-
-
Save daronspence/2bac73d8c732f857aa3a to your computer and use it in GitHub Desktop.
Register front end form ACF wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if( !is_user_logged_in() ) : ?> | |
<form action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post"> | |
<input type="text" name="user_login" value="Username" id="user_login" class="input" /> | |
<input type="text" name="user_email" value="E-Mail" id="user_email" class="input" /> | |
<?php do_action('register_form'); ?> | |
<input type="submit" value="Register" id="register" /> | |
</form> | |
<?php else : echo 'You are already logged in.'; endif; ?> |
To use fields like date, you need to use the following before get_header();
acf_form_head();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably a better idea to use Gravity Forms for registration. Keep the signup simple and allow them to edit their profile later.