Display a Count of Members by Level and/or Status via Shortcode

This nifty little shortcode will output the number of members in a level (or across all levels).

The output displays a message in the format: “This site has 25 Gold members”, or you can define the attribute ‘justnumber’ to output only the count of members and craft your own message like the one pictured to the right.


Shortcode Attributes

  • justnumber: Show just the count of members (optional; default: NULL)
  • level: A single level ID or comma-separated list of level IDs (optional; default: count for all levels)
  • status: A single status or comma-separated list of statuses (optional; default: ‘active’)

pmpro_member_number

The Shortcode Plugin

This code recipe requires a PMPro Plus Account or higher.

View Membership Options