If you’re using our Member Directory and Profile Pages Add On, the code recipe below allows you to set up the member’s profile to only show designated “premium fields” on a specific member’s profile page if the member belongs to one of the set “premium levels”.

Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro

How it Works

The pmpro_member_profile shortcode has attributes to display a variety of user meta fields, either those fields built in to WordPress or added via the custom User Fields feature in PMPro.

Use the code recipe below to specify fields that should only display to visitors on a member’s profile page if that member has a designated membership level (by level ID).

The Code Recipe

Adding the Recipe to Your Website

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.

Customize lines 18 and 19 with your desired fields and level IDs.

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo