Title: Different Menu in Different Pages – Conditional Menu
Author: recorp
Published: <strong>2019 年 6 月 30 日</strong>
Last modified: 2025 年 10 月 19 日

---

搜索插件

![](https://ps.w.org/different-menus-in-different-pages/assets/banner-772x250.jpg?
rev=2115061)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/different-menus-in-different-pages/assets/icon-256x256.jpg?
rev=2115013)

# Different Menu in Different Pages – Conditional Menu

 作者：[recorp](https://profiles.wordpress.org/recorp/)

[下载](https://downloads.wordpress.org/plugin/different-menus-in-different-pages.2.4.5.zip)

 * [详情](https://cn.wordpress.org/plugins/different-menus-in-different-pages/#description)
 * [评价](https://cn.wordpress.org/plugins/different-menus-in-different-pages/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/different-menus-in-different-pages/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/different-menus-in-different-pages/#developers)

 [支持](https://wordpress.org/support/plugin/different-menus-in-different-pages/)

## 描述

**Different Menu in Different Pages** lets you control menu visibility with flexible
conditional rules.
 Display unique navigation menus based on **pages, posts, categories,
tags, templates, user roles, devices,** and more — creating a fully personalized
user experience.

For example:
 – Show one menu on your homepage and a different one on product pages.–
Display menus only for logged-in users or specific user roles. – Assign menus dynamically
by URL patterns, post types, or page templates.

### 🎯 Key Features

✓ Show menus to **logged-in**, **logged-out**, or **all** users.
 ✓ Restrict menus
by **user roles** or exclude certain roles. ✓ Insert dynamic data in menu items 
using shortcodes: {username}, `{display_name}`, `{first_name}`, `{last_name}`, `{
nickname}`, `{email}`, `{avatar}` (with size options). ✓ Create **unlimited conditional
menus** from the settings page. ✓ Assign menus by **exact URL**, **page ID**, **
slug**, or **URL pattern** (`%keyword%`). ✓ Assign menus to **special pages** (Home,
Front Page, Blog, 404, Search). ✓ Support for **RTL** (right-to-left) layouts. ✓
Duplicate any existing menu using the **Menu Duplicator** tool. ✓ Modern AJAX-based
interface for fast settings updates.

### 🌟 Pro Features

The **Pro version** includes even more control and flexibility:

✓ Assign menus for **specific devices** (desktop, mobile, tablet) or **operating
systems** (Android, iOS).
 ✓ Create **multilingual or country-specific** menus (
no extra plugins needed). ✓ Quick **search filter** for settings. ✓ Assign menus
directly from the **post/page editor**. ✓ **Backup & Restore** menu rules easily.
✓ Temporarily **disable** a menu without deleting it. ✓ **Unlimited conditional 
menus** support. ✓ **Elementor header/footer** navigation compatibility.

👉 **Upgrade to the Pro version** for advanced functionality at [myrecorp.com](https://myrecorp.com).

## 屏幕截图

[⌊Plugin settings page with conditional menu rules.⌉⌊Plugin settings page with conditional
menu rules.⌉[

Plugin settings page with conditional menu rules.

[⌊Menu item conditions (restrict by role or login status).⌉⌊Menu item conditions(
restrict by role or login status).⌉[

Menu item conditions (restrict by role or login status).

[⌊“Add Different Menu” popup for rule setup.⌉⌊“Add Different Menu” popup for rule
setup.⌉[

“Add Different Menu” popup for rule setup.

[⌊Assign by custom URLs, page IDs, or slugs.⌉⌊Assign by custom URLs, page IDs, or
slugs.⌉[

Assign by custom URLs, page IDs, or slugs.

[⌊Parent category/page condition setup.⌉⌊Parent category/page condition setup.⌉[

Parent category/page condition setup.

[⌊Restrict menus by specific user roles.⌉⌊Restrict menus by specific user roles.⌉[

Restrict menus by specific user roles.

[⌊(Pro) Device-based menu assignment.⌉⌊(Pro) Device-based menu assignment.⌉[

_(Pro)_ Device-based menu assignment.

[⌊(Pro) Country/language-specific menus.⌉⌊(Pro) Country/language-specific menus.⌉[

_(Pro)_ Country/language-specific menus.

[[

[[

[[

## 安装

 1. Upload the `different-menus-in-different-pages` folder to `/wp-content/plugins/`,
    or install via the WordPress Plugin Installer.
 2. Activate the plugin through **Plugins  Installed Plugins**.
 3. Navigate to **Settings  Different Menus**.
 4. Click **Add Different Menu** and choose one of your existing menus.
 5. Configure your **visibility conditions** (pages, URLs, roles, etc.) and click **
    Save**.
 6. Visit your site’s frontend to see the new conditional menu in action.

## 常见问题

### What does “conditional menu” mean?

A conditional menu is displayed only when specific rules are met — such as user 
roles, page types, or custom URLs.

### How do I assign different menus to specific pages or user roles?

Go to **Settings  Different Menus  Add Different Menu**.
 Select your existing menu,
then choose conditions like page IDs, templates, or user roles under **Visibility
Rules**. Save to apply the menu to matching conditions.

### Can I show a menu only to logged-in or logged-out users?

Yes. Choose **Logged In Users** or **Logged Out Users** under visibility rules.

### What shortcodes are available for menu items?

You can personalize menu items with:
 {username}, `{display_name}`, `{first_name}`,`{
last_name}`, `{nickname}`, `{email}`, `{avatar}` (supports size attributes).

### What extra features does the Pro version include?

Device-based menus, multilingual menus, backup/restore, search filters, quick assignment
from editor, and Elementor header/footer compatibility.

### Where can I find support?

Visit the plugin’s **[support forum](https://wordpress.org/support/plugin/different-menu-in-different-pages/)**
or our website [myrecorp.com](https://myrecorp.com).

## 评价

![](https://secure.gravatar.com/avatar/c2e4b7cf26ab643868db585e8e5dab85d77ac1aa25147d0b00408e7d069214f3?
s=60&d=retro&r=g)

### 󠀁[Simple and powerful](https://wordpress.org/support/topic/simple-and-powerful-196/)󠁿

 [kubako](https://profiles.wordpress.org/kubako/) 2023 年 8 月 20 日

Easy to use, does what says, works perfectly.

![](https://secure.gravatar.com/avatar/49c94413e4f8434b0ae7ac84f7dc1533761e7739e8e3350a8f341bd3e6833756?
s=60&d=retro&r=g)

### 󠀁[Highly Recommended](https://wordpress.org/support/topic/highly-recommended-640/)󠁿

 [Tomala](https://profiles.wordpress.org/tomala/) 2023 年 8 月 1 日

I recently purchased the Pro version of Different menus in different pages, and 
I'm so glad I did! The features it offers are exactly what I needed for my website,
and I find the plugin very intuitive and easy to use. The best part has been the
support from the developer. Whenever I had a question or a problem, they were quick
to respond and help me out. They even went the extra mile to make sure I was getting
the most out of the plugin. I highly recommend this plugin. The Pro version is worth
every penny, and the customer service is top-notch.

![](https://secure.gravatar.com/avatar/ae4b933c761b98a8aaccda8ca2c583dd908415e0d93239c123aa7836a7c596bf?
s=60&d=retro&r=g)

### 󠀁[5 Stars isn’t enough](https://wordpress.org/support/topic/5-stars-isnt-enough-2/)󠁿

 [aubrob](https://profiles.wordpress.org/aubrob/) 2023 年 7 月 1 日

WOW! The best support I have ever had! I purchased the plugin and it wasn't working.
A couple of emails later, it was determined that the Genesis theme treated menus
differently. I got an email this morning from the developer Rayhan saying it he 
spent three hours figuring it out and writing the code to make it work.Most if not
all would have simply refunded me. I am a big fan of Rayhan!

![](https://secure.gravatar.com/avatar/f6721665f9a510fd8fd7b6dc704a5df4e34e1928589f385b48f1db62915ebe30?
s=60&d=retro&r=g)

### 󠀁[great! a working condition menu plug-in !!!!](https://wordpress.org/support/topic/great-a-working-condition-menu-plug-in/)󠁿

 [lacidin](https://profiles.wordpress.org/lacidinea/) 2022 年 1 月 26 日

a working condition menu plug-in !!!!

![](https://secure.gravatar.com/avatar/9c358df59f0afe7e64610964b00297bb3f2eefa4b42c8c5faea241f9989f98e9?
s=60&d=retro&r=g)

### 󠀁[Unbelievable Customer Support!](https://wordpress.org/support/topic/unbelievable-customer-support-2/)󠁿

 [benhunu](https://profiles.wordpress.org/benhunu/) 2021 年 8 月 17 日

I had a snag setting up my site with the Pro version of Different Menu In Different
Pages. But thanks to the fantastic support I received, I was able to solve the problem
in no time. Not only did their support team respond to my request within minutes,
they went out of their way to go through my site then helped me set everything up
correctly. I am extremely satisfied with the service I received!

![](https://secure.gravatar.com/avatar/582966c6d8cfa582609f627c0e884d92315a4327fee0caed12663f3fbbce41a5?
s=60&d=retro&r=g)

### 󠀁[Excellent Support and great plugin](https://wordpress.org/support/topic/excellent-support-and-great-plugin-19/)󠁿

 [](https://profiles.wordpress.org/lizmcreations/) 2021 年 7 月 10 日

I purchased the pro version of this plugin, but it didn't have the main feature 
that I needed. When I contacted the developer, initially requesting a refund, he
added the feature I needed into the plugin. Which, was a much better solution than
just a refund. I was very happy with the resolution and the plugin is working great
for me.

 [ 阅读所有20条评价 ](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/)

## 贡献者及开发者

「Different Menu in Different Pages – Conditional Menu」是开源软件。 以下人员对此
插件做出了贡献。

贡献者

 *   [ recorp ](https://profiles.wordpress.org/recorp/)

[帮助将「Different Menu in Different Pages – Conditional Menu」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/different-menus-in-different-pages)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/different-menus-in-different-pages/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/different-menus-in-different-pages/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/different-menus-in-different-pages/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/different-menus-in-different-pages/)。

## 更新日志

#### 2.4.3

 * Minor fixes and performance improvements.

#### 2.4.2

 * Miscellaneous updates and fixes.

#### 2.4.1

 * General improvements.

#### 2.4.0

 * Fixed multiple security vulnerabilities.

#### 2.3.2

 * Fixed tooltip display issues.

#### 2.3.1

 * Resolved pagination errors.

#### 2.3.0

 * Added menu item conditional options.
 * Fixed menu duplication and backup errors.

#### 2.2.2

 * Minor bug fixes and updated flag images.

#### 2.2.1

 * Fixed critical issue causing menu mismatch.

#### 2.2.0

 * Added “Custom Links” rule (by URL, page ID, or slug).

#### 2.1.7

 * Increased subpage limit in Pages tab.

#### 2.1.6

 * Added hover URL preview and bug fixes.

#### 2.1.4

 * Fixed notices not closing and template page menu mismatch.

#### 2.1.0

 * Added parent category/page conditional menus.
 * Resolved JavaScript conflicts.

#### 2.0.2

 * Removed Freemius framework.

#### 1.0.7

 * Increased limit for different menus.

#### 1.0.3

 * Added Menu Duplicator tool and screenshot.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **2.4.5**
 *  最后更新：**12 月前**
 *  活跃安装数量 **3,000+**
 *  WordPress 版本 ** 5.1 或更高版本 **
 *  已测试的最高版本为 **6.8.11**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/different-menus-in-different-pages/)
 * 标签
 * [conditional menu](https://cn.wordpress.org/plugins/tags/conditional-menu/)[different menu](https://cn.wordpress.org/plugins/tags/different-menu/)
   [menu visibility](https://cn.wordpress.org/plugins/tags/menu-visibility/)[navigation](https://cn.wordpress.org/plugins/tags/navigation/)
   [user roles](https://cn.wordpress.org/plugins/tags/user-roles/)
 *  [高级视图](https://cn.wordpress.org/plugins/different-menus-in-different-pages/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  15 条 5 星评价     ](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/?filter=2)
 *  [  4 条 1 星评价     ](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/different-menus-in-different-pages/reviews/)

## 贡献者

 *   [ recorp ](https://profiles.wordpress.org/recorp/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/different-menus-in-different-pages/)