{"id":2936,"date":"2013-02-04T00:19:31","date_gmt":"2013-02-04T08:19:31","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=2936"},"modified":"2014-03-01T22:32:59","modified_gmt":"2014-03-02T06:32:59","slug":"customizing-user-profile-fields","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/customizing-user-profile-fields\/","title":{"rendered":"Customizing User Profile Fields"},"content":{"rendered":"<p>The old shortcode for displaying the user profile on a page, was %%USERLINKS%% which just displayed the entire user profile with all fields, without the ability to customize which fields to show.<\/p>\n<p>That one is still valid. But starting DAP v4.4.3, we have a new shortcode to display userprofile.<\/p>\n<h3>[DAPUserProfile]<\/h3>\n<p>Allows you to selectively display profile fields on a page. Entering just the shortcode [DAPUserProfile] within a WP page, will show the default user profile form with all default fields being displayed.<\/p>\n<p>So entering just [DAPUserProfile] on a pagem is the same as entering the full version below:<\/p>\n[DAPUserProfile showFirstName=&#8221;Y&#8221; showLastName=&#8221;Y&#8221; showUserName=&#8221;Y&#8221; showEmail=&#8221;Y&#8221; showPassword=&#8221;Y&#8221; showAddress1=&#8221;Y&#8221; showAddress2=&#8221;Y&#8221; showCity=&#8221;Y&#8221; showState=&#8221;Y&#8221; showZip=&#8221;Y&#8221; showCountry=&#8221;Y&#8221; showPhone=&#8221;Y&#8221; showFax=&#8221;Y&#8221; showCompany=&#8221;Y&#8221; showTitle=&#8221;Y&#8221; showPaypalEmail=&#8221;Y&#8221; showOptedOut=&#8221;Y&#8221; showCustomFields=&#8221;Y&#8221;]\n<p><strong>Not Show Certain Fields<\/strong><\/p>\n<p>Just set the profile field that you don&#8217;t want shown to &#8220;N&#8221; in the shortcode.<\/p>\n<p>Default is &#8220;Y&#8221;. So Leaving out the text <strong>showLastName=&#8221;Y&#8221;<\/strong> entirely from the shortcode, is the same as setting it &#8220;Y&#8221;, which means it will be displayed.<\/p>\n<p><strong>To NOT SHOW Phone and Fax<\/strong><\/p>\n[DAPUserProfile showPhone=&#8221;N&#8221; showFax=&#8221;N&#8221;]\n<p>So all other fields will be displayed, except those two.<\/p>\n<p><strong>To SHOW just First Name, Last Name and Email<\/strong><\/p>\n[DAPUserProfile showFirstName=&#8221;Y&#8221; showLastName=&#8221;Y&#8221; showUserName=&#8221;N&#8221; showEmail=&#8221;Y&#8221; showPassword=&#8221;N&#8221; showAddress1=&#8221;N&#8221; showAddress2=&#8221;N&#8221; showCity=&#8221;N&#8221; showState=&#8221;N&#8221; showZip=&#8221;N&#8221; showCountry=&#8221;N&#8221; showPhone=&#8221;N&#8221; showFax=&#8221;N&#8221; showCompany=&#8221;N&#8221; showTitle=&#8221;N&#8221; showPaypalEmail=&#8221;N&#8221; showOptedOut=&#8221;N&#8221; showCustomFields=&#8221;N&#8221;]\n<p><strong>To SHOW just Password field<\/strong><\/p>\n[DAPUserProfile showFirstName=&#8221;N&#8221; showLastName=&#8221;N&#8221; showUserName=&#8221;N&#8221; showEmail=&#8221;N&#8221; showPassword=&#8221;Y&#8221; showAddress1=&#8221;N&#8221; showAddress2=&#8221;N&#8221; showCity=&#8221;N&#8221; showState=&#8221;N&#8221; showZip=&#8221;N&#8221; showCountry=&#8221;N&#8221; showPhone=&#8221;N&#8221; showFax=&#8221;N&#8221; showCompany=&#8221;N&#8221; showTitle=&#8221;N&#8221; showPaypalEmail=&#8221;N&#8221; showOptedOut=&#8221;N&#8221; showCustomFields=&#8221;N&#8221;]\n<p>(both main password field and repeat password will always be displayed together)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The old shortcode for displaying the user profile on a page, was %%USERLINKS%% which just displayed the entire user profile with all fields, without the ability to customize which fields to show. That one is still valid. But starting DAP v4.4.3, we have a new shortcode to display userprofile. [DAPUserProfile] Allows you to selectively display [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,58,65,26,100,120,7],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/2936"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=2936"}],"version-history":[{"count":4,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/2936\/revisions"}],"predecessor-version":[{"id":4180,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/2936\/revisions\/4180"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=2936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=2936"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=2936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}