This is after everything else in functions.php I cannot get it to be a part of the sign up form. Any ideas?
add_action('register_form','my_register_form');
function my_register_form(){
?>
<p>
<label>Title:<br/>
<input id="my_field_1" type="text" value="<?php echo $_POST['my_field_1']; ?>" name="my_field_1"/>
</label>
</p>
<p>
<label>Content:<br/>
<input id="my_field_2" type="text" value="<?php echo $_POST['my_field_2']; ?>" name="my_field_2"/>
</label>
</p>
<?php
add_action('user_register', 'my_create_page');
function my_create_page($user_id){
$my_post = array();
$my_post['post_title'] = $_POST['my_field_1'];
$my_post['post_type'] = 'page';
$my_post['post_content'] = $_POST['my_field_2'];
$my_post['post_status'] = 'publish';
wp_insert_post( $my_post );
}
}