The [pmpro_member_directory_search]
shortcode is used to display a search form for the Member Directory Add On. This allows users to search for members within the directory.
Add Search Field
To add a search form to any page or post, simply include the shortcode in the content editor:
[pmpro_member_directory_search]
Restrict the directory search with the Content Visibility block or shortcode.
Video: Coding with Sam Walkthrough
Troubleshooting Search Results
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.
Get Support From Our Team of Experts
For more help with this PMPro feature, check out our Support Page with three ways to get support as a free or premium member.
Last updated on August 20, 2025