Shortcode or code to show a subset of subscribers in membership

I'm about to upgrade to Membership 2. Until then, is there a way to output a list of subscribers based on their membership level or subscription? I want to showcase my "expert" members and have this list be dynamic.

  • Vinod Dalvi

    Hi @schoolofbookkeeping.com,

    I hope you are well today and thank you for your question.

    You can use the following ms-member-info shortcode of Membership 2 Pro plugin to display details about the member.

    [ms-member-info value="memberships" default="Sign up now!" list_separator=" | " before="Your Memberships: " user="2"]

    You have to specify the user id for user argument in the above shortcode so to make it dynamic you can get users and their user ids by developing the custom code using get_users function and then pass the user id as an argument to the shortcode ms-member-info and echo the shortcode using do_shortcode function.

    Please advise if you have more questions.

    Best Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.