這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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年3月15日
I was considering opening subdomains for a client website who had a grouped business offering. This was my saving grace as client wasnt willing to spend a lot of money on subdomains and set up. Wonderful stuff from themify Definitely stuck with you guys for life now
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!
閱讀全部56個評價

貢獻者及開發者

“Conditional Menus” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Conditional Menus 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2.0 (2022.02.25)

  • New: Option to set condition for post type archive

1.1.9 (2020.12.11)

  • Fix: Compatibility with PHP 8