latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Administrators cannot see menus…

Home Forums Community Forum Administrators cannot see menus…

This topic contains 1 reply, has 1 voice. Last updated by  Cassandra D 4 years, 6 months ago.

Topic Author Topic
Posted: Thursday Jun 21st, 2012 at 3:39 pm #17151

Hey everyone,

Trying out S2 member for now. I have to say this is the best one so far in terms of restricting content, and it might be what I need! Except for the menus…I wish there was a functionality to have different menus for different user levels. You can’t have it all I guess…

My site has free signup and I need a public menu and a different menu for people who sign up. The whole idea is to have a private store where I sell stuff online to my clients.

My functions file has this:

add_theme_support("nav-menus"); 
register_nav_menu ("primary-public", "Primary Menu ( public )");
register_nav_menu ("primary-level-0", "Primary Menu ( Level #0 )");

and my header file has this:

if(!is_user_logged_in()){
    wp_nav_menu (array ("theme_location" => "primary-public"));
} else {
    $level = S2MEMBER_CURRENT_USER_ACCESS_LEVEL;
    wp_nav_menu (array ("theme_location" => "primary-level-".$level));
}

Works great. Visitors see one menu, members see another, just what I want.

BUT, administrators don’t see any menu (except for a listing of all the pages where the menu is) because I don’t know how to work this into the functions file and the header file.

Administrators can’t have a “level” nor can they be “public”. Any ideas would be appreciate, with many many thanks…

Cassandra :)

  • This topic was modified 4 years, 6 months ago by  Cassandra D.
  • This topic was modified 3 years, 4 months ago by  Cassandra D.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Jun 21st, 2012 at 5:31 pm #17155

Ok I solved my problem in 2 minutes with this plugin: http://new.healthybeloved.com/wp-admin/themes.php?page=wps-filter-menu

Super easy! Hope this helps someone out…it might be perfect for YOU :D

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.