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

Conditional Menus

描述

Conditional Menus is a simple yet useful WordPress plugin by Themify, which allows you to swap the menus in the theme as per specific conditions. In short, you can have different menus in different posts, pages, categories, archive pages, etc. It works with any WordPress theme that uses the standard WordPress menu function.

How to use it

Once you activate the plugin, you will see the conditional menus on the Manage Locations tab located in your WP Admin > Appearance > Menus page.

1) To add conditional menu: click “Conditional Menu” and select a menu from the list (you can create these menus in the “Edit Menus” tab)
– You can remove the menu by selecting “Disable Menu” from the list.
2) Click on “+ Conditions” to add conditions in the modal box (tick the checkboxes where you want the menu to appear)
3) To remove the conditional menus, click on the “X” button

Visit https://themify.me/conditional-menus for more details.

屏幕截图

  • Admin interface

安装

  1. Login to your wp-admin > go to Plugins > Add New and upload the ‘conditional-menus.zip’
  2. Activate the plugin

评价

2022年1月6日
This just delivers what I needed. I wanted to create a micro site under the main site and Conditional Menus gave me the tool to do this. I had a minor issue setting up the second menu I wanted to use. Initially I had to use two sets of conditions to show this second menu, rather than control it from one set of conditions. I corresponded with the developer who offered to take a look but I ended up resolving the issue, still not sure how. But its works! A bit nervous that it is not reported to work under version 5.8.2 but it seems to.
2021年12月30日
The Conditional Menus plugin allows us to combine three sub-domains into one domain, saving our organization hundreds of dollars in hosting costs. We couldn't proceed without it!
2021年3月23日
I use the plugin to to switch languages. Have 3 language options in the secondary menu, and then sort the primary menu according to page categories. Liteweight and works perfectly. IMHO much better than the commonly used language plugins.
2021年3月2日
i looked here, i looked on your website, no where is a example/demo what the condition are, so why bother to install it not knowing if this is the right plugin for me
2021年1月26日
Works exactly how I expected and hoped. Very happy with this.
阅读所有52条评价

贡献者及开发者

“Conditional Menus” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Conditional Menus”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.9 (2020.12.11)

  • Fix: Compatibility with PHP 8