[WordPress] 外掛分享: PageMenu

首頁外掛目錄 › PageMenu
WordPress 外掛 PageMenu 的封面圖片
1,000+
安裝啟用
★★★☆☆
3.8/5 分(14 則評價)
2118 天前
最後更新
問題解決
WordPress 3.4.1+ PHP 5.2.4+ v5.1.4 上架:2014-03-28

內容簡介

Page Menu 外掛允許您為特定的文章或頁面選擇特定的選單,還提供了選擇在特定頁面或文章、分類、標籤和自訂分類法中顯示選單項目的選項。

您可以為特定頁面選擇不同的選單和選單項目。

此外掛支援文章、頁面、自訂文章類型和自訂分類法。

如何使用此外掛?

從「外觀」>「選單」創建一個或多個選單。
將選單分配到選單位置,從「外觀」>「選單」>「管理位置」中設定。
創建一個新文章或編輯現有文章。
在文章編輯器中,您會看到「Page Menu」文章後置框。
選擇位置。
選擇要在該位置上顯示的選單。
取消選擇您不想在該特定文章中顯示的項目。

下面是一個簡單的教程:

此外掛是如何運作的?

它使用過濾器 wp_nav_menu_args 來隱藏整個選單。

使用類別 pagemenu-hide 隱藏選單項目。

警告:我們建議您在位置中至少指定一個預設選單。

支援的文章類型:

文章
頁面
自訂文章

外掛標籤

開發者團隊

⬇ 下載最新版 (v5.1.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PageMenu」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Page Menu plugin allow to choose specific menu for specific post or page , It also
provide option to choose menu items to display on specific page or post , category ,tag and custom taxonomy. Different menu with your selected menu items for you specific page.
it support post , page ,custom post type , Custom Taxonomy
How to make this plugin work?

Create one or more menus from appearance > menus

Assign the menu to menu location from appearance > menus > manage locations

Create a new Post or edit Existing one

In post editor you will see the Page Menu post meta box

Choose the location

Choose the menu you want to display on that location

Uncheck the items you don’t want to display on that specific post

Here is small tutorial

How does this plugin works?
To hide entire menu it use filter wp_nav_menu_args
To hide menu item it use class pagemenu-hide

Warning : We recommend you assign at least one default menu in your locations

Supported Post

Post

Page

Custom Post

延伸相關外掛

文章
Filter
Mastodon