Your cart is currently empty!
Assign Group to a Custom Menu Item
—
by
Hi Guys
How can I assign a group to a particular custom menu item so that only that particular group can see the custom menu item in the menu?
The custom menu item has a post type of Navigation Menu Item “nav_menu_item”
Posted in Groups File Access, Groups Restrict Categories
Comments
5 responses to “Assign Group to a Custom Menu Item”
Hey Mark,
Yes in order to to adjust the header template, your theme should support FSE. Otherwise, you can create the aforementioned structure even on a single page with the Block editor.
Kind regards,
George
Hi Mark,
With the Classic Menu found under Appearance > Menu, there are technical limitations in WP core, that prevent Groups restrictions to be applied on a menu item.
The workaround I mentioned refers to Full Site Editing and blocks, where once you add the Groups Member Block, inside it you can add the Navigation block(or any other block) and this way choose who will be privileged to view the containing block.
Kind regards,
George
Hi George
I understand now. My Theme is not a Full Site Editing Theme. So I guess there is nothing your plugin can do to help.
Hi George
I dont quite follow. Where do I place the Group Members Block? It seems this is a block you use when creating a Page or a Post. I’m working with my Main Menu. I have a menu like this
HOME FORUM
|_GROUP 1 FORUM
|_GROUP 2 FORUM
|_GROUP 3 FORUM
Each one of those sub nav_menu_items is a custom URL link going to an external forum website we have.
I need to make sure members of GROUP 1 only see GROUP 1 FORUM sub menu item….and so on
Hi Mark,
Welcome to our support forum and many thanks for using our software on your site.
What you can do in order to restrict visibility of a menu item, is by using the Groups Member block,inside of which you will place the Navigation block(WP Core block). The Groups Member block will handle the group restriction and the Navigation block will be used for a new menu containing the menu item you wish to restrict visibility.
Basically the result would be a second menu with its own menu item(s), which will be restricted by the chosen group.
Kind regards,
George