{"id":536,"date":"2013-12-10T03:15:08","date_gmt":"2013-12-10T03:15:08","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=536"},"modified":"2013-12-10T03:15:08","modified_gmt":"2013-12-10T03:15:08","slug":"add-and-display-custom-profile-fields-using-gravity-forms","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/add-and-display-custom-profile-fields-using-gravity-forms\/","title":{"rendered":"Add and display custom profile fields using gravity forms"},"content":{"rendered":"<p>When it comes to form handling in WordPress, \u00a0Gravity forms stands ahead of all other plugins. Even it is a premium plugin, its worth the cost. It satisfies an absolute beginner by its\u00a0users-friendly\u00a0interface, as well as a developer by various hooks and \u00a0filters.<\/p>\n<p>Having a full fledged registration form in WordPress is the feature that every one is looking for. Gravity form\u2019s User Registration\u00a0add-on already allow the user to add a decent registration form. But what\u00a0if you wish to create and display \u00a0custom meta data(profile field) in the front end? Here is the solution.<\/p>\n<p>To achieve this you need to do 4 things<\/p>\n<p>1.Creating a custom meta data. This will display in user profile section in dashboard.<br \/>\n2.Saving the meta data value in database.<br \/>\n3.Displaying the saved data.<br \/>\n4.Mapping the meta field to Gravity Forms user registration add-on<\/p>\n<p>Now to do the first 3 steps, follow this wonderful tutorial by Justin Tadlock &#8211;\u00a0<a title=\"Adding and using custom user profile fields\" href=\"http:\/\/justintadlock.com\/archives\/2009\/09\/10\/adding-and-using-custom-user-profile-fields\" rel=\"bookmark\">Adding and using custom user profile fields<\/a>.<\/p>\n<p><strong>Mapping the meta data to Gravity Forms user registration add-on :<br \/>\n<\/strong>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.<\/p>\n<p>In the user registration \u00a0add-on page of Gravity Form, you can see a section called\u00a0<strong>User meta<\/strong>, where you can add WordPress default meta data elements like Website,Aim,Yahoo etc and don\u2019t forget to note the last option which says \u201cAdd Custom\u201d<\/p>\n<p><a href=\"http:\/\/logeshkumar.com\/wp-content\/uploads\/2011\/11\/gform.jpg\"><img loading=\"lazy\" title=\"gravity forms\" alt=\"gravity forms\" src=\"http:\/\/logeshkumar.com\/wp-content\/uploads\/2011\/11\/gform-300x266.jpg\" width=\"300\" height=\"266\" \/><\/a><\/p>\n<p>Now type the name of the custom meta data(profile field you created by following the tutorial link I provided earlier), in the \u201cAdd Custom\u201d 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.<\/p>\n<p>This custom meta data gets added to the user profile page in dashboard. Now you know how to display it. Just follow\u00a0the same steps in the last section of this\u00a0<a href=\"http:\/\/justintadlock.com\/archives\/2009\/09\/10\/adding-and-using-custom-user-profile-fields\">tutorial<\/a>. Hope this helped you. Please post your views.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When it comes to form handling in WordPress, \u00a0Gravity forms stands ahead of all other plugins. Even it is a premium plugin, its worth the cost. It satisfies an absolute beginner by its\u00a0users-friendly\u00a0interface, as well as a developer by various hooks and \u00a0filters. Having a full fledged registration form in WordPress is the feature that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[9,4],"tags":[],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/536"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}