What Is Link Relationship in WordPress Menu?

When creating a WordPress menu, you likely have noticed a link relationship between the menu items. A link relationship is the relationship between two menu items that allow the user to navigate between them.

In the example below, the first menu item, “Menu Item 1,” is a child of the second menu item, “Menu Item 2.” When the user clicks on Menu Item 1, they are taken to the content for Menu Item 2.

This is a link relationship.

Menu Item 1 is a child of Menu Item 2.

If you wanted to remove the link relationship between Menu Item 1 and Menu Item 2, you would need to unhide Menu Item 1 and then unhide Menu Item 2. Alternatively, you could use the parent_menu() function to create a new menu item that is the parent of Menu Item 1 and Menu Item 2.

Menu Item 1 is a child of Menu Item 2, but Menu Item 2 is not a child of Menu Item 1.

A link relationship is important because it allows the user to navigate between the menu items. If Menu Item 1 was not a child of Menu Item 2, the user would need to click on Menu Item 1 to get to Menu Item 2’s content.