Sale
Member Directory and Profile Pages
Enhance your membership site with a public or members-only searchable directory and customizable member profile pages.
Enhance your membership site with a public or members-only searchable directory and customizable member profile pages.
Rs20,254.00 Original price was: Rs20,254.00.Rs410.00Current price is: Rs410.00. for 1 year
Price is in US dollars and excludes tax and handling fees
Verified From
Enhance your membership site with a public or members-only searchable directory and customizable member profile pages.
Plus Add Ons are included in all Plus or higher premium membership plans.
Add value to your membership, foster community, and build connections through member directories and listings. This Add On allows you to create a customizable Member Directory and individual Member Profile pages.
You must have the Paid Memberships Pro plugin installed and activated with a valid license type to use this Add On.
Try a Demo: View the PMPro demo site or launch a free private demo now.
Note: The Profile page should not be set to the same page or contain the same shortcode as your site’s “Member Profile Edit” page. The Directory’s Profile page is a static view of member data, whereas the Member Profile Edit page is where a single logged-in user can modify their profile information.
–
A directory can be inserted in any page or post via the Members Directory Block or Shortcode ([pmpro_member_directory]
).
[pmpro_member_directory]
The Members Directory Block options appear in Settings side panel when you select the block.
fields="Company,company;Website,user_url"
). You can also display user fields captured at checkout, such as the member’s billing information. See a list of payment fields stored in usermeta here.We have a list of shortcode examples at the bottom of this documentation page if you are using the shortcode method instead of the block.
A profile can be inserted in any page or post via the Member Profile Block or Shortcode ([pmpro_member_profile]
).
[[pmpro_member_profile]]
The Member Profile Block options appear in Settings side panel when you select the block.
fields="Company,company;Website,user_url"
). You can also display user fields captured at checkout, such as the member’s billing information. See a list of payment fields stored in usermeta here.Members can opt out of the member directory by checking the “Hide from Directory?” field on the “Edit Profile” page.
We have a list of shortcode examples at the bottom of this documentation page if you are using this method.
If you are displaying a field that is a file type (audio, video, image, document), the shortcode will attempt to embed or display the file based on the mime type (about WordPress filetypes).
If your members have a profile field that links to a third-party embeddable platform like YouTube, Vimeo, and others, the field will also display as an embed. See a list of supported oembed sites here.
The screenshots in these docs use the Memberlite Theme, which provides full integration and additional styling for the Member Directory and Profile Pages Add On.
Theme authors and developers can create a custom template for the Directory and Profile via two methods: a template in the active theme folder or a template loaded via a customization plugin.
Theme authors should use the theme method as outlined in this document. The files directory.php
and profile.php
should copied out of the Add On plugin files and placed in a new /paid-memberships-pro/pmpro-member-directory/
folder in your theme.
If you are not a theme author looking to build support for this Add On, we recommend using a customizations plugin and creating a new shortcode (rename the directory or profile shortcode in the Add On to something unique for your site) and require that template file in your customizations plugin main file.
By default, the search fields in this Add On will search the following profile values: user_login
, user_email
, display_name
, and all usermeta
fields.
Some servers may not allow the large queries needed to execute a directory and profiles search. You will know this is the case if you are using the search form and no results are returned when you know results should be returned.
The recipe below can be used to allow your hosting environment to process the large JOIN operations needed for this Add On.
<?php | |
/* | |
* Allow large JOIN operations in the Member Directory and Profiles Add On for Paid Memberships Pro. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* | |
*/ | |
function pmpromd_set_db_option() { | |
global $wpdb; | |
$wpdb->query( “SET SESSION SQL_BIG_SELECTS=1” ); | |
} | |
add_action( ‘init’, ‘pmpromd_set_db_option’, 5 ); |
Display only level IDs 1 and 4, hide avatars and email address:
[pmpro_member_directory levels="1,4" show_avatar="false" show_email="false"]
Show all level IDs, hide level name and start date:
[pmpro_member_directory show_level="false" show_startdate="false"]
Display custom user meta fields using the “fields” attribute in the format Label,key;Label,key:
[pmpro_member_directory fields="Company,company;Website,user_url"]
Show a unique member directory by level. Level 1 Members can only see other Level 1 Members:
[membership level="1"]
[pmpro_member_directory levels="1"]
[/membership]
[membership level="2"]
[pmpro_member_directory levels="2"]
[/membership]
[membership level="3"]
[pmpro_member_directory levels="3"]
[/membership]
Show unique member profiles based on level – hide user phone number and email address.
[membership level="1"]
[pmpro_member_profile show_email="false" show_phone="false"]
[/membership]
[membership level="2"]
[pmpro_member_profile show_email="true" show_phone="true"]
[/membership]
The following actions and filters are available in this Add On:
do_action( 'pmpro_member_directory_before', $sqlQuery, $shortcode_atts );
Allows content to be inserted before the member directory table.
apply_filters( 'pmpro_member_profile_fields', array $fields_array, user $pu );
Change which fields are displayed on a user’s profile.
apply_filters( 'pmpro_member_directory_sql_parts', array $sql_parts, string $levels, string $s, int $pn, int $limit, int $start, int $end, string $order_by, string $order );
The $levels
parameter is a single level ID or a comma-separate list of IDs (not an array of level IDs).
The $sql_parts
parameter is an array of each section of the SQL query for building your list of members to include in the directory. The sections of the array you can modify include:
$sql_parts['SELECT']
$sql_parts['JOIN']
$sql_parts['WHERE']
$sql_parts['GROUP']
$sql_parts['ORDER']
$sql_parts['LIMIT']
No account yet?
Create an Account