i’m not familiar with membership types…that’s under products
https://rocketgeek.com/plugins/wp-members/docs/membership-products/
but @ https://rocketgeek.com/plugins/wp-members/docs/shortcodes/status-shortcodes/
[wpmem_logged_in meta_key="my_special_field" meta_value="the_value"]This is restricted to users who have “the_value” as the value for “my_special_field”[/wpmem_logged_in]
and
[wpmem_logged_in role="editor,subscriber"]This content displays for editor or subscriber role[/wpmem_logged_in]
The [wpmem_logged_in] shortcode has an attribute for membership products. You can use “products” or “memberships” to pass the slug of the membership you are restricting to:
[wpmem_logged_in membership=”bronze”]This is restricted to users with bronze[/wpmem_logged_in]
OR:
[wpmem_logged_in product=”bronze”]This is restricted to users with bronze[/wpmem_logged_in]
Both of the above would yield the same result (“membership” is preferred as that terminology is replacing “product” for clarity/consistency in future versions).
See: https://rocketgeek.com/plugins/wp-members/docs/shortcodes/status-shortcodes/
-
This reply was modified 1 year, 10 months ago by Chad Butler.
Thanks Chad,
That does the trick.
Should have read the documentation better then I would have known.