This simple membership extension allows you to show various member info using shortcodes. See below for the usage instructions.
Download the Addon
Click here to download the show member info addon.
Installing the Show Member Info Addon
- Click on the “Add New” menu under the plugins interface of your WP Dashboard.
- Go to the “Uploader” tab and upload the zip file.
- Hit the “Install Now” button and then activate the addon.
Show Member Info of the Logged-in Member
The following shortcode will show the first name of the logged-in member:
[swpm_show_member_info column="first_name"]
The following shortcode will show the last name of the logged-in member:
[swpm_show_member_info column="last_name"]
The following shortcode will show the email of the logged-in member:
[swpm_show_member_info column="email"]
The following shortcode will show the membership level name of the logged-in member:
[swpm_show_member_info column="membership_level_name"]
The following shortcode will show the member ID of the logged-in member:
[swpm_show_member_info column="member_id"]
The following shortcode will show the expiry date of the logged-in member:
[swpm_show_member_info column="expiry_date"]
Show Member Info of a Specific Member
The following shortcode will show the first name of the member_id specified in the shortcode:
[swpm_show_member_info column="first_name" member_id="1"]
The following shortcode will show the last name of the member_id specified in the shortcode:
[swpm_show_member_info column="last_name" member_id="1"]
The following shortcode will show the email of the member_id specified in the shortcode:
[swpm_show_member_info column="email" member_id="1"]
Available Column Fields
Below is a list of available column names that you can use in the shortcode to show member’s info:
- user_name
- member_id
- first_name
- last_name
- phone
- address_street
- address_city
- address_state
- address_zipcode
- country
- gender
- company_name
- subscription_starts
- member_since
- member_since_formatted
- membership_level
- membership_level_name
- account_state
- last_accessed_from_ip
- expiry_date
Displaying the Profile Image (Configured via Form Builder Addon)
If you have configured a “Profile Image” field for the member profiles via the Form Builder addon, then the following shortcode can be used to display that profile image:
[swpm_show_member_info column="profile_image" member_id="1"]
If you only want the image source (URL) of the profile photo then you can use the following shortcode:
[swpm_show_member_info column="profile_image_src" member_id="1"]
Tip for Copying and Pasting the Shortcode
Use the text mode of the post/page editor when you paste the shortcode. If you copy the shortcode from our site then paste it while in the “text” mode of the editor then you won’t get any weird formatting. So you will get the proper shortcode without any funny formatted double quotes.