Title: Zen Menu Logic
Author: zenofwordpress
Published: <strong>2012 年 3 月 15 日</strong>
Last modified: 2017 年 11 月 17 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/zen-menu-logic.svg)

# Zen Menu Logic

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

[下载](https://downloads.wordpress.org/plugin/zen-menu-logic.zip)

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

 [支持](https://wordpress.org/support/plugin/zen-menu-logic/)

## 描述

This plugin only works under the following conditions:
 1. the theme has registered
at least one menu location 2. user has created at least one custom menu with one
or more menu items. 3. user has selected which menu location the plugin should work
on in the Settings -> Zen Menu Logic options page 4. This plugin currently does 
not support a website that uses a plugin to change the language of the site to something
other than English. This might change in the future. 5. Oftentimes themes have their
own code that effects how menus work, specially when it comes to mobile. Therefore,
this plugin may not work with your theme.

If those 3 conditions are met, then the edit page for every page and post
 and custom
post type will contain a meta box listing the custom menus with radio buttons. All
you need do is select which custom menu should display when that page is called.

## 安装

 1. Unzip the download package
 2. Upload `zen-menu-logic` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to the Zen Menu Logic options page in the Setting’s menu
     and select which menu
    location is the one that the plugin will work on.

alternatively

 1. upload the zip file from the Admin plugins page
 2. then activate
 3. Go to the Zen Menu Logic options page in the Setting’s menu
     and select which menu
    location is the one that the plugin will work on.

## 常见问题

  Installation Instructions

 1. Unzip the download package
 2. Upload `zen-menu-logic` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to the Zen Menu Logic options page in the Setting’s menu
     and select which menu
    location is the one that the plugin will work on.

alternatively

 1. upload the zip file from the Admin plugins page
 2. then activate
 3. Go to the Zen Menu Logic options page in the Setting’s menu
     and select which menu
    location is the one that the plugin will work on.

## 评价

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

### 󠀁[Works Perfectly!](https://wordpress.org/support/topic/works-perfectly-1343/)󠁿

 [corrinarusso](https://profiles.wordpress.org/corrinarusso/) 2018 年 1 月 10 日

Thank you! Works perfectly right out of the box. Conditional Menus plugin failed.
And If Menu plugin has no options at all. Working with Beaver Builder plugin and
Beaver Builder theme.

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

### 󠀁[Not working on Enfold theme](https://wordpress.org/support/topic/not-working-on-enfold-theme-2/)󠁿

 [rkarayaka](https://profiles.wordpress.org/rkarayaka/) 2017 年 8 月 1 日 1 回复

Zen Menu is not working after Enfold Theme’s last update. Are you planning to fix
this problem soon? I disabled Zen Menu for now but need to use asap.

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

### 󠀁[It works like a charm!](https://wordpress.org/support/topic/it-works-like-a-charm-20/)󠁿

 [Artneo](https://profiles.wordpress.org/artneo/) 2017 年 2 月 14 日

It really does what it says. Thanks a lot for creating this plugin.

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

### 󠀁[Impresive plugin](https://wordpress.org/support/topic/impresive-plugin/)󠁿

 [sonnylodi](https://profiles.wordpress.org/sonnylodi/) 2016 年 9 月 3 日 1 回复

Incredible happy to have found this plugin. I have tried it, and it works perfect.
My website is being translated in several languages and as soon as that is done 
i will active Greg’s Plugin again and place individual menus. But please Greg, can
you make this work on mobile phones also? It would be a huge improvement. I am willing
to donate money for that, and i am sure others will to. Looking forward to a feedback
on this from you.

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

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-922/)󠁿

 [Hoitl](https://profiles.wordpress.org/hoitl/) 2016 年 9 月 3 日

Easy to work with, because integrated perfectly 😉 Thank you ^^

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

### 󠀁[Cool Plugin!](https://wordpress.org/support/topic/cool-plugin-201/)󠁿

 [Schmiddy](https://profiles.wordpress.org/schmiddy/) 2016 年 9 月 3 日

Thx, it saved me a lot of time! 🙂

 [ 阅读所有21条评价 ](https://wordpress.org/support/plugin/zen-menu-logic/reviews/)

## 贡献者及开发者

「Zen Menu Logic」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Zen Menu Logic」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/zen-menu-logic)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.6

 * Fixed bug that was causing non object error when custom post types exist

#### 1.5

 * Changed constructor to php 7 style

#### 1.4

 * Fixed bug in saving logic. Tested in WP 3.6

#### 1.3

 * Added uninstall functionality to delete option used by plugin

#### 1.21

 * Changed the text in the options panel.

#### 1.2

 * There is a design flaw in v1.1 where I assumed that the name of the primary menu
   location
 * was primary. That is the way it is in the 2011 theme. But not all themes are 
   like that.
 * So this new version has an options page as a menu item of the Settings Menu that
   lists all
 * the menu locations by name. And you need to select which one is the primary, 
   or, in other
 * words, which menu location the menu logic will work on. Please let me know if
   there are
 * any questions.

#### 1.1

 * simplify code that tests is this plugin is supported by the theme
 * replace code that implemented the change in menu to use the wp_nav_menu_args 
   filter

#### 1.0

 * write menu logic code

## 额外信息

 *  版本 **v1.6**
 *  最后更新：**9 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 3.3.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/zen-menu-logic/)
 * 标签
 * [custom menus](https://cn.wordpress.org/plugins/tags/custom-menus/)[menu-logic](https://cn.wordpress.org/plugins/tags/menu-logic/)
 *  [高级视图](https://cn.wordpress.org/plugins/zen-menu-logic/advanced/)

## 评级

 4.9 星（最高 5 星）。

 *  [  18 条 5 星评价     ](https://wordpress.org/support/plugin/zen-menu-logic/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/zen-menu-logic/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/zen-menu-logic/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/zen-menu-logic/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/zen-menu-logic/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/zen-menu-logic/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/zen-menu-logic/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/zen-menu-logic/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.zenofwp.com/)