I’ve been asked this simple question many times recently: “How do I display the current user’s membership level in my theme?”
This post details how to use the
[pmpro_member] shortcode, included in the main plugin, to show specific information about the current logged in user’s membership.
Why would you want to do this?
We created the
[pmpro_member] shortcode so that you can build a more robust and personalized experience on your membership site.
How to use the shortcode:
You can place this general shortcode anywhere in your site, either in post content or widgets, or via template files using the WordPress
Available shortcode attributes:
The shortcode accepts one single parameter, with a specific set of values as listed below. These values will pull the data directly from the current logged in user record.
Supported “field” Values Include:
Fields Stored in the