前言介紹
- 這款 WordPress 外掛「Advanced Custom Fields: Nav Menu Field」是 2013-05-08 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2017-11-28,距離現在已有 2713 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.4 以上版本才可以安裝。
- 有 33 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
faison |
外掛標籤
acf | acf4 | acf5 | custom fields | advanced custom fields |
內容簡介
使用 Nav Menu Field 外掛將導覽選單加入Advanced Custom Fields (ACF)。此外掛會在 ACF(版本 5 和 4)加入 Nav Menu 欄位類型,讓您從 WordPress 管理後台建立的選單中選擇並使用於網站前端顯示。
使用 ACF,您可以設定 Nav Menu 欄位,讓其回傳所選選單的:
ID 以進行輕量開發
物件以進行複雜程式開發
HTML (從wp_nav_menu產生)以快速顯示選單
我創建此外掛是因為我需要在網站上顯示一個次要選單,取決於當前所在的頁面是哪一個。大部份頁面都是某一個父頁面的子頁面,但是我有幾個自訂文章類型。由於有自訂文章類型,所以我不能只取當前頁面的最高父頁面,然後使用wp_list_pages。因此,我進行了一些研究,並決定擴展我最喜愛的外掛Advanced Custom Fields的功能。現在,當我創建新頁面或自訂文章時,我只需從下拉式選單中選擇選單即可!
歡迎在開發網站上試用此附加元件,在上方支援連結上發問,並請檢查此附加元件。透過留下評分和評論,您能幫助此外掛變得更好!
Advanced Custom Fields 相容性
此附加元件適用於:
版本 5
版本 4
原文外掛簡介
Add Navigation Menus to Advanced Custom Fields (ACF) with the Nav Menu Field plugin! This plugin adds the Nav Menu Field type to ACF (version 5 & 4), allowing you to select from the menus you create in the WordPress Admin backend to use on your website’s frontend.
Using ACF, you can set the Nav Menu Field to return the selected menu’s:
ID for lightweight coding,
Object for more involved programming, or
HTML (generated from wp_nav_menu) for quickly displaying a menu.
I created this plugin because I needed to display a secondary menu that changed depending on what page you’re on. Most of those pages were children of the same page, but then I had to throw a couple of Custom Post Types in there too. Because of the Custom Post Types, I couldn’t just grab the top most parent for the current page and use wp_list_pages. So I did some research and decided to extend the functionality of my favourite plugin, Advanced Custom Fields. Now when I create a new Page or Custom Post, I just select the menu from a drop down menu!
Feel free to try this add-on on your dev site, ask questions on the support link above, and please review this add-on. By leaving a rating and review, you help this plugin become even better!
Advanced Custom Fields Compatibility
This add-on will work with:
version 5
version 4
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Advanced Custom Fields: Nav Menu Field」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.1.1 | 1.1.2 | 2.0.0 | trunk |
延伸相關外掛(你可能也想知道)
Advanced Custom Fields: Font Awesome Field 》在 Advanced Custom Fields 中添加一個Font Awesome 圖標字段類型。, , 指定要使用哪些 Font Awesome...。
ACF Content Analysis for Yoast SEO 》此外掛確保 Yoast SEO 分析包括所有 ACF 內容,包括彈性內容和重複器。, Yoast SEO for WordPress 內容和 SEO 分析不會考慮一篇文章的Advanced Custom Fields...。
Table Field Add-on for ACF and SCF 》表格欄位外掛程式增強了Advanced Custom Fields外掛程式的功能,讓表格編輯更易於使用。, 此外掛程式需要Advanced Custom Fields外掛程式或專業版!, 表格欄...。
ACF: Better Search 》此插件可為 WordPress 搜尋引擎添加額外功能,讓您可以在 Advanced Custom Fields 指定的欄位中搜尋內容。, 一切都是自動運作的,您無需添加任何額外的程式碼...。
Advanced Custom Fields: Gravity Forms Add-on 》提供進階自訂欄位 (Advanced Custom Field),讓 WordPress 編輯使用者或管理員可以在欄位群組配置中選擇 Gravity Form。, 可以在 外掛的 GitHub 存儲庫 中找...。
Advanced Custom Fields: Image Crop Add-on 》ACF圖像裁剪是ACF本地Image字段的擴展版本。, 該字段給開發人員 /管理員提供了一個選項,可以預定義圖像的大小,用戶會在各種編輯屏幕上被提示裁剪。這解決了...。
ACF Theme Code for Advanced Custom Fields 》ACF Theme Code 外掛可以自動生成在主題中實現 Advanced Custom Fields 所需的程式碼。以下是該外掛的功能特色:, , - 縮短網站開發時間。, - 當您發布、編輯...。
ACF qTranslate 》此外掛提供 qTranslate-X 相容的 ACF4 和 ACF5PRO 欄位類型,包括文字、文字區域、所見即所得編輯器、影像和檔案。新增欄位至群組時,這些新的欄位類型將在欄...。
ACF Field For Contact Form 7 》此外掛為「Advanced Custom Fields」WordPress 外掛添加一個「Contact Form 7」欄位類型。, 您可以將一個或多個聯絡表單存儲在「Advanced Custom Fields」欄...。
Admin Columns for ACF Fields 》使用此外掛在 WordPress 後端的「所有文章」表格視圖中顯示 ACF 欄位。, 只需在任何常規字段的 ACF 字段設置中啟用新選項「管理列」(請參見以下例外),就會...。
ACF Columns 》使用 ACF Columns(ACF欄位佈局外掛)可以在文章編輯器中將ACF欄位排成欄位群組。, 使用新的ACF 5.7,可以在不同的欄位中使用條件邏輯。, 對於每個欄位,請在...。
LuckyWP ACF Menu Field 》將導覽選單欄位類型加入 Advanced Custom Fields 外掛。, 功能特色, , 可自訂回傳值:ID、物件(WP_Term)或 HTML(使用 wp_nav_menu() 函數)。, 引用過濾器...。
Advanced Custom Fields Repeater & Flexible Content Fields Collapser 》此外掛的「Repeater」和「Flexible Content Field」功能,讓 ACF 變得非常強大,但若有多個欄位使用這兩者中的一個或兩個以上,排序時會顯得相當不便。此外掛...。
Advanced Custom Fields: Typography Field 》「Advanced Custom Fields」外掛的排版類別欄位,讓你新增不同的文字屬性,例如字型大小、字型家族、字體顏色等。, 支援的子欄位, , 字型大小, 字型家族, 字...。
ACF User Role Field Setting 》警告:自 4.0.0 版本起支援子欄位已被移除, 這是針對 Advanced Custom Fields (ACF) 版本 5 的附加外掛程式。, 若未安裝 ACF5,此外掛程式將不提供任何功能。...。