{"id":3051,"date":"2013-02-25T22:28:14","date_gmt":"2013-02-26T06:28:14","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=3051"},"modified":"2015-03-07T23:06:39","modified_gmt":"2015-03-08T07:06:39","slug":"dap-user-profile","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/dap-user-profile\/","title":{"rendered":"[DAPUserProfile]"},"content":{"rendered":"<p>This post is dedicated just to the <strong>[<\/strong><strong>DAPUserProfile<\/strong>] shortcode. To see the rest of the <a href=\"http:\/\/DigitalAccessPass.com\/doc\/dap-shortcodes\/\">DAP Shortcodes, click here<\/a>.<\/p>\n<h3><strong>[DAPUserProfile]<\/strong><\/h3>\n<p>This is the shortcode that displays all of the user profile fields on a page. Simply enter it on a WordPress page, save it, and when you view it when logged in as a user, it will display the DAP user profile form, with the logged-in user&#8217;s information displayed in the form fields.<\/p>\n<p>As DAP Admin, you can customize which profile fields to show to your members, and which ones to hide. Just set the profile field that you don&#8217;t want displayed, to &#8220;N&#8221; in the tag below.<\/p>\n<h3>Default version<\/h3>\n<p><code>[DAPUserProfile showFirstName=\"Y\" <strong>showLastName=\"Y\"<\/strong> showUserName=\"Y\" showEmail=\"Y\" showPassword=\"Y\" showAddress1=\"Y\" showAddress2=\"Y\" showCity=\"Y\" showState=\"Y\" showZip=\"Y\" showCountry=\"Y\" showPhone=\"Y\" showFax=\"Y\" showCompany=\"Y\" showTitle=\"Y\" showPaypalEmail=\"Y\" showOptedOut=\"Y\" showCustomFields=\"Y\"]<\/code><\/p>\n<p>Default is <code>\"Y\"<\/code>. So Leaving out the text (for eg.) <strong><code>showLastName=\"Y\"<\/code><\/strong> entirely from the shortcode, is the same as setting it <code>\"Y\"<\/code>, which means it will be displayed.<\/p>\n<p>Entering just <strong>[DAPUserProfile]<\/strong> into a page, will show ALL fields.<\/p>\n<h4>Show All Fields Except Phone &amp; Fax<\/h4>\n<p>To hide just Phone and Fax, you would do something like this:<\/p>\n<p><code>[DAPUserProfile showPhone=\"N\" showFax=\"N\"]<\/code><\/p>\n<p>So all other fields will be displayed, <em>except<\/em> those two.<\/p>\n<h4>Show Just A Few<\/h4>\n<p>To show (say) just First, Last, Username, Password and Email, this is the shortcode:<\/p>\n<p><code>[DAPUserProfile <strong>showFirstName=\"Y\"<\/strong> <strong>showLastName=\"Y\"<\/strong> <strong>showUserName=\"Y\" showEmail=\"Y\" showPassword=\"Y\"<\/strong> showAddress1=\"N\" showAddress2=\"N\" showCity=\"N\" showState=\"N\" showZip=\"N\" showCountry=\"N\" showPhone=\"N\" showFax=\"N\" showCompany=\"N\" showTitle=\"N\" showPaypalEmail=\"N\" showOptedOut=\"Y\" showCustomFields=\"N\"]<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>Related: <a href=\"http:\/\/www.digitalaccesspass.com\/doc\/dap-user-links\/\">[DAPUserLinks] shortcode<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is dedicated just to the [DAPUserProfile] shortcode. To see the rest of the DAP Shortcodes, click here. [DAPUserProfile] This is the shortcode that displays all of the user profile fields on a page. Simply enter it on a WordPress page, save it, and when you view it when logged in as a user, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[85,27,65,6,26,100],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3051"}],"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=3051"}],"version-history":[{"count":9,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3051\/revisions"}],"predecessor-version":[{"id":5086,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/3051\/revisions\/5086"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=3051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=3051"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=3051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}