Support » Plugin: Nav Menu Roles » Nav Menu Roles problems on homepage

  • yulya6758656

    (@yulya6758656)


    Hello!
    I use plugin Nav Menu Roles for additional menu item for authorized users.
    In every page it seems to be working fine but on homepage it doesn’t (shows data for unauthorized users) but if I renew the page in browser it works fine. Could you explain why is it happening?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    If the problem is resolved by refreshing the page, that sounds like it’s mostly an issue related to caching. I’ve never been able to find a way to load the menu in a way that breaks through strong page caching.

    Thread Starter yulya6758656

    (@yulya6758656)

    Thank you for your answer. I disabled server cache and problem is still here. Site uses only WooCommerce cache. Some pages seem like user is authorized and some like he’s not. Could you help me with this problem?

    Plugin Author HelgaTheViking

    (@helgatheviking)

    The plugin checks current_user_can( $role ) and decides if the item is visible or not. Can you post a screenshot of your settings?

    Now $role is a better UI in the admin menu setup, but role can be a little fuzzy if different roles have overlapping capabilities. Capabilities are what we really ought to be using if we want to be precise about who can see what, but then we’d have 100+ options in the admin too so I went with Roles.

    For example, an issue that came up the other day is a menu item was assigned to a Role called s2member_level1 and so when a s2member_level2 was on the site there was confusion as to why they couldn’t see the s2member_level1 menu item. It was because the shared capability was actually different from the role name.

    Not sure that’s happening here, but wanted to mention it.

    Still… the most common other issue is usually some kind of caching… plugin, server, maybe even browser though that would be a first for me. Woo doesn’t have any static HTML caching that would interfere with the menu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nav Menu Roles problems on homepage’ is closed to new replies.