Member Profile Page - YourMembers/yourmembers GitHub Wiki

[ym_user_profile_form] [ym_profile] [ym_user_password_form] [ym_user_profile] [ym_user_first_name] [ym_user_last_name] [ym_user_username] [ym_user_email] [ym_user_register_date] [ym_user_description] [ym_user_custom args] [ym_rss_token]

Your Members provides a group of shortcodes to enable the display of member profile information; they can be used throughout your site. The shortcodes also give a site administrator the ability to create a custom member profile page. This is perfect if you prevent members from accessing the WordPress dashboard, usually making use of Your Members redirection.

A benefit of a Your Members generated member profile page is that it inherits the look and feel of your site.

Shortcodes


Create a new page on your WordPress site maybe called Member Profile, then use these shortcodes to produce a custom member profile page:

Generic

These shortcodes produce member and subscription information in an out-of-the-box solution.  

  • Replicate the WordPress profile page: [ym_user_profile_form]

This is an editable form to enable your members to update their own personal details.

 

  • Member's subscription information: [ym_profile]

 

    <li><span class="scodes"><strong>Reset WordPress password:</strong></span> <code>[ym_user_password_form]</code></li>

 

    <li><span class="scodes"><strong>Member's custom registration fields:</strong></span> <code>[ym_user_profile]</code></li>

When using [ym_user_profile], you can selectively display or hide individual fields by making use of these arguments: show_custom_fields or hide_custom_fields, followed by a comma separated list of custom fields (by name) to show/hide. Such as this:

[ym_user_profile show_custom_fields="user_url,birthdate"]

Specific

These shortcodes provide for fine grained tuning of you member profile page or allow for specific member information to be displayed anywhere on your site.

Example Use

Here the more specific shortcodes are being used to create a tailor-made member profile page. Note that the profile information is only displayed to logged-in members by use of the [no_access] and [user_has_access] shortcodes. Non logged-in members are given the opportunity by means of the [ym_register] shortcode.

[no_access] [ym_register] [/no_access]

[user_has_access]

Hello [ym_user_username]

Here is your membership profile and subscription information:

First Name: [ym_user_first_name]
Last Name: [ym_user_last_name]
   
Username: [ym_user_username]
User Email: [ym_user_email]
   
Bio: [ym_user_description]
URL: [ym_user_custom name="user_url" alt="Member's Website"]
[/user_has_access]

Once saved, your new member profile page would look like this:

⚠️ **GitHub.com Fallback** ⚠️