I'm trying to bring buddypress user registration form to front page and send data by doing a
post method to original registration page and go through registration process.
What I've done is copying some fields from registration page source (without any changes in
field name) and pasting to the page that goes to be front page.
form tag contains these attributes:
<form action="http://mysite.com/signup-page" name="signup_form" class="pure-form pure-form-aligned" id="signup_form" method="post" enctype="multipart/form-data">
I also noticed that there is a
_wpnonce hidden input in registration page so I found the related function from
bp-default/registration/register.php and put it within
<?php wp_nonce_field( 'bp_new_signup' ); ?>
The problem is that when I click submit button, it goes to the link I used in
action but page only has title and a box to login and leave a comment. no field and no warning is there! However when I access registration page directly all things are correct.
Any help will be appreciated!