custom menu not working for admin
-
I’m using PMP Version 2.0.7
I created a custom menu for non-members (has a login menu) and those who are members (has links to member only areas)
Everything was working fine until I updated wordpress a few days ago.
Now as an admin when I login and although I have membership too I see the non-member menu.
If I log in as a regular member (no admin rights) I get the member menu; which is correct.
Here is the code I’m using:
<!-- is there a user to check? --> <?php if ( is_user_logged_in() && function_exists('pmpro_hasMembershipLevel')) { //check level if(pmpro_hasMembershipLevel()) wp_nav_menu( array( 'theme_location' => 'primary-members', 'items_wrap' => pixiebolt_custom_header_menu_wrap(), 'menu_class' => 'nav navbar-nav navbar-right', 'container' => false ) ); else wp_nav_menu( array( 'theme_location' => 'primary-nonmembers', 'items_wrap' => pixiebolt_custom_header_menu_wrap(), 'menu_class' => 'nav navbar-nav navbar-right', 'container' => false ) ); } else { wp_nav_menu( array( 'theme_location' => 'primary-nonmembers', 'items_wrap' => pixiebolt_custom_header_menu_wrap(), 'menu_class' => 'nav navbar-nav navbar-right', 'container' => false ) ); } ?>The page I need help with: [log in to see the link]
-
Hi @shopmaster,
Thank you for using Paid Memberships Pro.
Our support doesn’t cover custom code troubleshooting but I will try to help you where I can.
Does your admin have an active membership level or do they have a ‘pending’ status/other custom code may be altering the admins membership level.
I found out what it was.
It was right in front of me. I was testing something and let the membership expire on the admin account.
Thank you!
You are most welcome, glad to hear you’ve figured it out! 🙂
Have a great day further.
The topic ‘custom menu not working for admin’ is closed to new replies.