🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

WordPress Plugins for Displaying Different Menus to Different Users: If Menu & Nav Menu Roles

WordPress is a very powerful website building system. Naibabiji has written adetailed WordPress website installation tutorial. Nowadays, many people use WordPress to build resource sites or membership websites. Naiba previously introducedplugins that require login to view contentplugins that show or hide content based on specific conditions. Today, I'll share two more plugins for conditionally showing or hiding menusWordPress Plugin: If Menu and Nav Menu Roles.

Introduction to If Menu

If Menu is a WordPress Plugin, so you need a website built with WordPress to use it. If you haven't built a website yet, please refer toNaibabijito build one.The main function of If Menu is to show or hide menu content based on different conditions. For example, you can refer to the following plugin screenshot:if Menu菜单插件In the menu in the screenshot above, the menu item 'Visible after login' can only be seen after logging in. Category 3 is only visible to Subscribers (a default user group in WordPress), and Category 2 is only visible when accessed via a mobile device (visible to administrators in debug mode).

Features Supported by If Menu

If Menu shows or hides menu items by establishing if conditions. You can set multiple conditions at once and use „AND“ and „OR“ to evaluate the conditions.Supported conditions include:
  1. Judgment based on user group
  2. Judgment based on page type
  3. Judgment based on user status
  4. Judgment based on visitor device
  5. Judgment based on visitor location (country/region)
  6. Judgment based on browser language
  7. Support for WooCommerce plugin judgment

How to Use If Menu

Using If Menu is very simple. After installing and activating it, go to WordPress Appearance Settings - Menus, find the menu item you want to configure, check „Enable menu filtering“, and then options to add conditions will appear as shown in the image below. Add them according to your actual needs.if Menu菜单插件When adding, you can set based on user permissions or page type. If you don't understand English, you can translate it yourself.if Menu菜单插件

If Menu Download Address

You can directly search for If Menu in the WordPress Admin Dashboard to install it, or download and install it via the link below. If you don't know how to install a plugin, please refer to:WordPress Plugin Installation Tutorial Download LinkIf Menu is in English by default, and the judgment based on language and region is a feature of the premium version. Naiba has localized and specially handled it. If needed, you canfollow Naiba„s WeChat official account and reply with “If Menu" to get it.微信公众号

Introduction to Nav Menu Roles

不同用户显示不同菜单内容Nav Menu Roles can also be configured to display different menu content based on different user identities. For example, a certain menu is only shown to logged-in users, and some menus are only shown to logged-out users. Nav Menu Roles offers very flexible role control. In addition to standard user roles, you can use the nav_menu_roles filter to add checkboxes with custom labels, and then use the nav_menu_roles_item_visibility filter to check the required conditions, thereby customizing the functionality. You can check any user meta value (such as capabilities) and any custom attributes added by other plugins.Important NoteIn WordPress menus, items and pages are completely separate entities. Nav Menu Roles does not restrict access to content. Nav Menu Rolesis used to show/hideNavigation Menuitems. If you wish to restrict content, you will also need to use a membership plugin.

How to Use Nav Menu Roles

  1. Go to Appearance > Menus
  2. Set the „Display Mode“ to „Logged-in Users“, „Logged-out Users“, or „Everyone“. Default is „Everyone“.
  3. If you wish to customize by role, set the „Display Mode“ to „Logged-in Users“, then under „Restrict menu item to minimum role“, check the box next to the desired role.Remember, roles are not exclusive to that role, but to everyone with that role's capabilities.For example: An item set to „Subscriber“ will be visible to Subscribersand Administrators. Think of this more as the minimum role required to view the item.

Nav Menu Roles Download Link

Nav Menu Roles is a free plugin. You can install it directly via the plugin search in the WordPress Admin Dashboard, or manually download the installation package and upload it for installation.Download Link

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step instead.

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan to Follow