Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Adding specific membership level content to navigation menu
- This topic has 6 replies, 2 voices, and was last updated 12 years, 2 months ago by stephen299.
-
AuthorPosts
-
September 10, 2012 at 2:47 am #7369stephen299Member
I would like to add specific menu items relating to the membership levels in my navigation menu, but I’m not 100% sure how to do that.
For example, there would be a tab on the navigation menu that says “My Subscriptions” and under it would have all the subscriptions (ie. categories or pages) that the specific member has access to.
I tried to just add multiple menus and call them for each membership level, but so far I have 20 different menus and 20 different if statements in the theme’s code just to handle this and I know it could be much more efficient. I just need to figure out how to call the menu items to appear in the menu depending on the membership level. How exactly would I do something like this? Thanks!
September 10, 2012 at 7:38 am #49162adminKeymasterThe following two posts should help:
September 10, 2012 at 9:37 pm #49163stephen299MemberYeah I’ve looked at those, but they don’t do exactly what I want. Is there a way to create the WP menu in the PHP file that then calls the specific membership levels and adds them as items? I’ve looked everywhere but I can’t find a solution
September 11, 2012 at 3:13 am #49164adminKeymasterOkay that means you will need a custom solution. You can fill out this form to get a custom solution:
September 12, 2012 at 2:42 am #49165stephen299MemberOkay I’ll check it out, thanks!
For now though, is there a way to get all the different membership levels a member has? Currently I’m using this function :
<?php echo wp_eMember_get_user_details(“membership_level”); ?>
But it only gets the main membership level. Is there a way to get all of the levels a member has access to?
September 12, 2012 at 7:50 am #49166adminKeymasterUse the following to get all the additional membership level IDs of a user:
<?php echo wp_eMember_get_user_details("more_membership_levels"); ?>
Use the following to show the primary membership level name:
<?php echo wp_eMember_get_user_details("user_membership_level_name"); ?>
Use the following to show the additional membership level name(s):
<?php echo wp_eMember_get_user_details("user_additional_membership_level_names"); ?>
September 12, 2012 at 11:51 pm #49167stephen299MemberGot it, thanks! Also, I just sent an email regarding custom work. I would love to have it done tonight if possible, but I know I’m probably being difficult. I’m looking forward to hearing from you!
-
AuthorPosts
- You must be logged in to reply to this topic.