• how to use the xprofile location in a custom registration form

    
    <div class="form-group">
    		<label for="user">Usuario:</label>
    		<input type="text" id="user" name="user" class="form-control" value="<?php echo isset($_POST['user']) ? $_POST['user'] : null;?>" placeholder="Usuario" required aria-required="true" />
    		</div>

    in this way I use a normal field, but how to do it with xprofile location and that the google API search the cities?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Massimo,

    You can try adding the location field to the standard registration form, and look at the HTML code it produces. Then you can reuse that code in your custom registration form.

    Thread Starter massimo_oddo

    (@rodhzuniga)

    What is the original user registration page for wordpress when I use the buddypress plugin?

    Plugin Author Andrea Tarantini

    (@dontdream)

    When you use BuddyPress, it creates a page named ‘Register’ that will automatically contain all the extended profile fields in the ‘Base (Primary)’ field group.

    I suggest you add your location field to the ‘Base’ group, so you can take a look at the HTML code it produces in the ‘Register’ page. If you plan to create a custom registration page, you can probably reuse that code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘custom registration form’ is closed to new replies.