When it comes to form handling in WordPress, Gravity forms stands ahead of all other plugins. Even it is a premium plugin, its worth the cost. It satisfies an absolute beginner by its users-friendly interface, as well as a developer by various hooks and filters.
Having a full fledged registration form in WordPress is the feature that every one is looking for. Gravity form’s User Registration add-on already allow the user to add a decent registration form. But what if you wish to create and display custom meta data(profile field) in the front end? Here is the solution.
To achieve this you need to do 4 things
1.Creating a custom meta data. This will display in user profile section in dashboard.
2.Saving the meta data value in database.
3.Displaying the saved data.
4.Mapping the meta field to Gravity Forms user registration add-on
Now to do the first 3 steps, follow this wonderful tutorial by Justin Tadlock – Adding and using custom user profile fields.
Mapping the meta data to Gravity Forms user registration add-on :
If you wish to add this meta data as an user registration form field, then you need gravity Form and its user registration add-on.
In the user registration add-on page of Gravity Form, you can see a section called User meta, where you can add WordPress default meta data elements like Website,Aim,Yahoo etc and don’t forget to note the last option which says “Add Custom”
Now type the name of the custom meta data(profile field you created by following the tutorial link I provided earlier), in the “Add Custom” text box. Then select the relevant gravity form field from the drop down on the right side. Save the form and now you are done. You have successfully added custom meta data, and its ready to receive input from user during registration.
This custom meta data gets added to the user profile page in dashboard. Now you know how to display it. Just follow the same steps in the last section of this tutorial. Hope this helped you. Please post your views.