• Hi, I have an issue where if I publish a page, add it to a WordPress menu, then change its Groups settings so it’s only visible to a certain group, the menu never updates – it continues to show that Page in the menu. The permissions work correctly in that users outside the Group get a 404 when they click the link, but obviously that’s not ideal.

    This doesn’t happen if I set a page’s Group settings correctly the very first time before I click Publish, only when updating the page. The only way I’ve found to fix it is to totally delete the page and recreate it. I tried removing/re-adding and resaving the menus as well, no joy.

    Any ideas on how to fix this? Thanks so much!

    https://www.ads-software.com/plugins/groups/

Viewing 1 replies (of 1 total)
  • Hi Michelle,

    In order to show menu items to specific groups, you should install Groups Premium Menu Hide extension.
    You can download the zip file and install it as a normal plugin.
    After restricting access to the posts/pages you prefer, keep a note of those posts/pages ids.
    Then on line 40 of groups-premium-menu-hide.php, indicate the group name instead of Premium and on line 43 indicate the post/page id you noted before.
    That way only members of that group will see the post/page menu item. For non-members or guests it won’t appear on the list.
    Please note that on line 43, post/page id should be in quotes and if you want more than one posts you can use a comma separated list like this: $hide_from_premium_post_ids = array( '1', '2' );

    Kind regards,
    George

Viewing 1 replies (of 1 total)
  • The topic ‘Menu item not hiding correctly’ is closed to new replies.