Skip to content

Instantly share code, notes, and snippets.

@daronspence
Last active February 3, 2020 15:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save daronspence/2bac73d8c732f857aa3a to your computer and use it in GitHub Desktop.
Save daronspence/2bac73d8c732f857aa3a to your computer and use it in GitHub Desktop.
Register front end form ACF wordpress
<?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; ?>
@daronspence
Copy link
Author

Probably a better idea to use Gravity Forms for registration. Keep the signup simple and allow them to edit their profile later.

@itsmereal
Copy link

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