- This topic has 8 replies, 3 voices, and was last updated 5 years, 11 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › If exists a shortcode to show an array of all the membership levels ID of a user
Hi,
I have a site that uses multiple membership levels.
I would need to know if exists or is possible to have a shortcode that shows an array of all the membership levels IDs of a user.
I would need to use it with another plugin to make a conditional check and display content, as with section protection of WP eMember I can not get the desired results.
I’m not a php expert, if possible to have a suggestion on how to proceed, thank you.
The only way to do this is with the following PHP code:
<br />
$all_level_ids = emember_get_all_level_ids_of_a_member($member_id);<br />
This causes each element of the array $all_level_ids to contain the membership level ID that $member_id belongs to.
what plugin are you using to show specific posts as per membership? and how to use above code in this plugin?
Vinay, please provide more context, regarding your question.
sorry admin,
the question was for “3ddsa” who said “I would need to use it with another plugin to make a conditional check and display content” …
i also need similar provision where user will see only posts from the subscribed categories in his user-area. i was wondering if such thing available. I m using “Content Views” plugin, but how to pass registered categories to “CV” to show only those content..
how to get list of categories to which membership levels of user are associated with? or accessible to?
means, if my membership levels are 1,7 and categories permitted in those levels are 22,31 & 16, how can i know it??
hello??
…the question was for “3ddsa” who said…
And that’s why none of us has responded.
how to get list of categories to which membership levels of user are associated with? or accessible to?
Please review this thread, and see if it helps:
sorry for misunderstanding..